<?xml version="1.0" encoding="UTF-8" ?>
<DataIntegratorExport repositoryVersion="12.2.2.0000" productVersion="12.2.3.2">
<DIDatabaseDatastore name="SRCSTAGING_DS" typeId="3" >
<DIAttributes>
<DIAttribute name="DBLiveLoad" value="no"/>
<DIAttribute name="application_type" value="Custom"/>
<DIAttribute name="cdc_enabled" value="no"/>
<DIAttribute name="datastore_repotype" value="local"/>
<DIAttribute name="ds_configuration_enabled" value="yes"/>
<DIAttribute name="ds_configurations" hasNestedXMLTree ="true">

<DSConfigurations>
<DSConfiguration default="true" name="Default">
<case_sensitive>no</case_sensitive>
<database_type>Microsoft_SQL_Server</database_type>
<db_alias_name1>SRCSTAGING_ALIAS</db_alias_name1>
<db_alias_user1>dws</db_alias_user1>
<loader_xact_size>1000</loader_xact_size>
<locale_codepage>&lt;default&gt;</locale_codepage>
<locale_language>&lt;default&gt;</locale_language>
<locale_territory>&lt;default&gt;</locale_territory>
<mssql_windows_authentication>no</mssql_windows_authentication>
<password>;085A6DF93DA01ED1DEA3BB1DC1D656C0EF56E65913FB53605B75804428674DE2</password>
<sql_server_database>XsStaging</sql_server_database>
<sql_server_dataserver>localhost,1433</sql_server_dataserver>
<sql_server_version>Microsoft SQL Server 2005</sql_server_version>
<user>dws</user>
</DSConfiguration>
</DSConfigurations>

</DIAttribute>
<DIAttribute name="enable_data_transfer" value="yes"/>
<DIAttribute name="import_unknown_type" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="unknown_type_size" value="255"/>
</DIAttributes>
</DIDatabaseDatastore>
<DIDatabaseDatastore name="DW_ABC_DS" typeId="3" >
<DIAttributes>
<DIAttribute name="DBLiveLoad" value="no"/>
<DIAttribute name="application_type" value="Custom"/>
<DIAttribute name="cdc_enabled" value="no"/>
<DIAttribute name="datastore_repotype" value="local"/>
<DIAttribute name="ds_configuration_enabled" value="yes"/>
<DIAttribute name="ds_configurations" hasNestedXMLTree ="true">

<DSConfigurations>
<DSConfiguration default="true" name="Default">
<case_sensitive>no</case_sensitive>
<database_type>Microsoft_SQL_Server</database_type>
<db_alias_name1>DW_ABC_ALIAS</db_alias_name1>
<db_alias_user1>dwabc</db_alias_user1>
<loader_xact_size>1000</loader_xact_size>
<locale_codepage>&lt;default&gt;</locale_codepage>
<locale_language>&lt;default&gt;</locale_language>
<locale_territory>&lt;default&gt;</locale_territory>
<mssql_windows_authentication>no</mssql_windows_authentication>
<password>;89770408927C5ECAB76D9855E0DA5FE4F25B0E2949263E3397D5BD72B1A30930</password>
<sql_server_database>XsStaging</sql_server_database>
<sql_server_dataserver>localhost,1433</sql_server_dataserver>
<sql_server_version>Microsoft SQL Server 2005</sql_server_version>
<user>dwabc</user>
</DSConfiguration>
</DSConfigurations>

</DIAttribute>
<DIAttribute name="enable_data_transfer" value="yes"/>
<DIAttribute name="import_unknown_type" value="no"/>
<DIAttribute name="name" value="DW_ABC_DS"/>
<DIAttribute name="unknown_type_size" value="255"/>
</DIAttributes>
</DIDatabaseDatastore>
<DITable name="ALT_ACTUALCOST_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="EXCH_BASE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="ITFUNCTION_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="PERSON_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="COST_BASE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="EXCHANGE_LOC_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="SCENARIO_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="COSTCAT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="BUSSERVICE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="DATE_INCURRED_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="COST_LOC" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="APPLICATION_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="CONTRACT_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="COSTCENTER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="BUDGET_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="QUANTITY" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="DNFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_CLOSED" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="CURRENCY_LOC" datatype="VARCHAR" size="3" nullable="true" >
</DIColumn>
<DIColumn name="CUSTOMER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="APPLICATION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="EXPENSE_STATUS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="ITFUNCTION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="EXCH_LOC_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="DATE_INCURRED_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="EXCHANGE_BASE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="COSTCENTER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="CUSTOMER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="BUDGETLINE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="CURRENCY_BASE" datatype="VARCHAR" size="3" nullable="true" >
</DIColumn>
<DIColumn name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PROGRAM_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="BUDGETLINE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="BUSSERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ASSET_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ORG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="ACTUALCOST_DESCRIPTION" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="SUPPLIER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="SCENARIO_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="PERSON_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="ASSET_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="BUDGET_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="CONTRACT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="PROGRAM_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="OCFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ACTUALCOST_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_ACTUALCOST_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PROJECT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="CONTRACT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="ASSET_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ACTUALCOST_DESCRIPTION" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="CURRENCY_LOC" datatype="VARCHAR" size="3" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_CLOSED" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="PROGRAM_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="CONTRACT_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PERSON_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PROGRAM_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="CURRENCY_BASE" datatype="VARCHAR" size="3" nullable="true" >
</DIColumn>
<DIColumn name="EXCH_LOC_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="ORG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="OCFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="BUDGETLINE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ASSET_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DNFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="QUANTITY" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="BUDGET_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="BUDGET_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="EXPENSE_STATUS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="CUSTOMER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="BUSSERVICE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="DATE_INCURRED_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="COST_LOC" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="APPLICATION_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="DATE_INCURRED_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="COSTCENTER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="APPLICATION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="CUSTOMER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="COSTCENTER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="EXCHANGE_LOC_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ITFUNCTION_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="COST_BASE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="ITFUNCTION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="SUPPLIER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="EXCHANGE_BASE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="BUSSERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="SCENARIO_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="PERSON_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="EXCH_BASE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="SCENARIO_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="COSTCAT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="BUDGETLINE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ACTUALCOST_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALT_BUSINESS_APPLICATION_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="TIMEZONE" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="APPLICATION_NAME_ALT" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="BUSINESS_CRITICALITY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MONITORED_BY" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="DATE_MODIFIED" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="APPLICATION_NAME" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="APPLICATION_TAGS" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DATE_CREATED" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DISPLAY_LABEL" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="CI_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALT_BUSINESS_APPLICATION_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALT_BUSINESS_APPLICATION_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="TIMEZONE" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="DATE_CREATED" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="APPLICATION_NAME" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="BUSINESS_CRITICALITY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MONITORED_BY" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="APPLICATION_TAGS" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="DISPLAY_LABEL" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DATE_MODIFIED" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="CI_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="APPLICATION_NAME_ALT" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALT_BUSINESS_APPLICATION_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTASSET_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="ORG_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PARENT_BUSINESS_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="ASSET_STATUS" datatype="VARCHAR" size="20" nullable="true" >
</DIColumn>
<DIColumn name="CI_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="DATE_INSTALLED" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ASSET_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DATE_REQUEST" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="COSTCENTER_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="USER_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MAINT_CONT_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="DATE_DELIVER" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DATE_ORDER" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="DATE_RETIRED" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="ASSET_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="ASSET_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MODEL_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTASSET_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTASSET_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LOCATION_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="DATE_ORDER" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="USER_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ASSET_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DATE_INSTALLED" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="ASSET_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PARENT_BUSINESS_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="COSTCENTER_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ORG_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ASSET_STATUS" datatype="VARCHAR" size="20" nullable="true" >
</DIColumn>
<DIColumn name="DATE_REQUEST" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DATE_DELIVER" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DATE_RETIRED" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="CI_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ASSET_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MAINT_CONT_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MODEL_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTASSET_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTEMPLOYMENT_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="START_DATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="END_DATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PERSON" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="EMPLOYEE_STATUS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="EMPLOYEE_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTEMPLOYMENT_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTEMPLOYMENT_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="EMPLOYEE_STATUS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PERSON" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="EMPLOYEE_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="END_DATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="START_DATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTEMPLOYMENT_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTLOCATION_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LOCATION_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="SITE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="BUILDING" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="CITY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="POSTAL_CODE" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="PARENT_LOCATION_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="STATE_PROVINCE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="COUNTRY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="LOCATION_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTLOCATION_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTLOCATION_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="CITY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="SITE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="BUILDING" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PARENT_LOCATION_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="POSTAL_CODE" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="STATE_PROVINCE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="LOCATION_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="COUNTRY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTLOCATION_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTORG_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="FLAG_COMPANY" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MANAGER_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="PARENT_ORG_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="ORG_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="ORG_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="FLAG_INTERNAL" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTORG_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTORG_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="FLAG_COMPANY" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PARENT_ORG_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="ORG_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="ORG_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="FLAG_INTERNAL" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MANAGER_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTORG_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTPERSON_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PERSON_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="PARENT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DEPT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="PERSON_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DATE_START" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="PRIMARY_EMAIL" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DATE_END" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTPERSON_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTPERSON_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DATE_END" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DEPT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PERSON_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PRIMARY_EMAIL" datatype="VARCHAR" size="255" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PERSON_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PARENT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DATE_START" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTPERSON_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTPLANNEDCOST_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SCENARIO_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="EXCH_LOC_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="OCFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="PROGRAM_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="APPLIC_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="CURRENCY_BASE" datatype="VARCHAR" size="3" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="BUDGETLINE_BUSINESS_KEY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="CUSTOMER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="BUDGET_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="BUDGET_BUSINESS_KEY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="SCENARIO_ENTEPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="PROGRAM_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="ITFUNCTION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PERIOD_START_DATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MANAGER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="EXCH_LOC_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="APPLICATION_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PLANNEDCOST_DESCRIPTION" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ORG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="BUDGETLINE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="CURRENCY_LOC" datatype="VARCHAR" size="3" nullable="true" >
</DIColumn>
<DIColumn name="MANAGER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="BUSSERVICE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="ITFUNCTION_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="BUSSERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="DNFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="CUSTOMER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="EXCH_BASE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="COST_LOC" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="EXCH_BASE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_ENTEPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="COSTCAT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="SUPPLIER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="COST_BASE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="PERIOD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTPLANNEDCOST_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTPLANNEDCOST_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="BUSSERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="APPLIC_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DNFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MANAGER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PROGRAM_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="BUSSERVICE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="EXCH_LOC_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="CUSTOMER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="APPLICATION_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="SCENARIO_ENTEPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="BUDGETLINE_BUSINESS_KEY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="CUSTOMER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="SUPPLIER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="ITFUNCTION_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ITFUNCTION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="COST_LOC" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="MANAGER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PLANNEDCOST_DESCRIPTION" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="CURRENCY_BASE" datatype="VARCHAR" size="3" nullable="true" >
</DIColumn>
<DIColumn name="BUDGET_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="EXCH_BASE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="COSTCAT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="OCFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="ORG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="PERIOD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="BUDGET_BUSINESS_KEY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_ENTEPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="COST_BASE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="SCENARIO_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="BUDGETLINE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="PERIOD_START_DATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PROGRAM_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="EXCH_LOC_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="EXCH_BASE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="CURRENCY_LOC" datatype="VARCHAR" size="3" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTPLANNEDCOST_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTSERVICE_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="BUSINESS_CRITICALITY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="DISPLAY_LABEL" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="SERVICE_STATE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="PARENT_SERVICE_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="SERVICE_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="CI_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MANAGER_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTSERVICE_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTSERVICE_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SERVICE_STATE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PARENT_SERVICE_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="BUSINESS_CRITICALITY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="SERVICE_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MANAGER_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="CI_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="DISPLAY_LABEL" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTSERVICE_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTSERVICESTATUS_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SERVICE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DATE_STATUS_START" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MEASURETYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="PERIOD" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="STATUS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DATE_RECORD_START" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DURATION" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTSERVICESTATUS_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTSERVICESTATUS_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MEASURETYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DURATION" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="SERVICE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="STATUS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PERIOD" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="DATE_STATUS_START" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DATE_RECORD_START" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTSERVICESTATUS_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTSLA_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SLA_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="SLA_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DATE_START_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="SLA_STATE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DATE_END_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTSLA_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTSLA_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="DATE_START_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="SLA_STATE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SLA_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="SLA_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="DATE_END_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTSLA_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTSURVEY_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="SURVEY_TYPE" datatype="VARCHAR" size="32" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="FULL_MARK_SCORE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SURVEY_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="SURVEY_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTSURVEY_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTSURVEY_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SURVEY_TYPE" datatype="VARCHAR" size="32" nullable="true" >
</DIColumn>
<DIColumn name="SURVEY_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="SURVEY_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="FULL_MARK_SCORE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTSURVEY_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTSURVEYSCORE_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="EMPLOYMENT_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="SURVEY_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="SCORE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PERSON_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PERIOD_START_DATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTSURVEYSCORE_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTSURVEYSCORE_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="EMPLOYMENT_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PERIOD_START_DATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SCORE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="PERSON_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="SURVEY_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTSURVEYSCORE_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTTIME_TO_MARKET_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="INIT_START_DATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="TT_MKT_START_DATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="PRODUCT_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTTIME_TO_MARKET_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_ALTTIME_TO_MARKET_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="TT_MKT_START_DATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PRODUCT_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="INIT_START_DATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_ALTTIME_TO_MARKET_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_CHANGE_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="OUTAGE_END_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="EMERGENCY_CHANGE" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="CREATE_TIME_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="APPROVAL_STATUS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="URGENCY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="OUTAGE_START_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="OUTAGE_START_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="CLOSE_TIME_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="SERVICE_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="CLOSE_TIME_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="COMPLETION_CODE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="REFERENCE_NUMBER" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="PRIORITY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="UNPLANNED_CHANGE" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="OUTAGE_END_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="CHANGE_SUBCATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="CREATE_TIME_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="CHANGE_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_CHANGE_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_CHANGE_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="CREATE_TIME_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="CREATE_TIME_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="URGENCY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="REFERENCE_NUMBER" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="CLOSE_TIME_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="OUTAGE_START_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="SERVICE_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="APPROVAL_STATUS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="CHANGE_SUBCATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="OUTAGE_START_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="CLOSE_TIME_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="UNPLANNED_CHANGE" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="PRIORITY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="OUTAGE_END_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="COMPLETION_CODE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="OUTAGE_END_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="EMERGENCY_CHANGE" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="CHANGE_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_CHANGE_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_CONTRACT_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="DATE_START_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_PURCHASE" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_UPGRADE" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="CONTRACT_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_RETURN" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="PERIODICITY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="CONTRACT_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="RETURN_OPTION_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DATE_START_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PURCHASE_OPTION_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PARENT_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="RENEWAL_OPTION_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="LICENSE_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DATE_END_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="COSTCENTER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="PAYMENT_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="UPGRADE_OPTION_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_RENEWAL" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_ASSIGNABLE" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="DATE_END_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MANAGER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="CONTRACT_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="STATUS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_CONTRACT_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_CONTRACT_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DATE_END_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DATE_START_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="CONTRACT_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_RETURN" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="UPGRADE_OPTION_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PERIODICITY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_ASSIGNABLE" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="CONTRACT_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="STATUS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_PURCHASE" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MANAGER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_UPGRADE" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="DATE_START_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DATE_END_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PURCHASE_OPTION_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_RENEWAL" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="RETURN_OPTION_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="CONTRACT_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="RENEWAL_OPTION_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PAYMENT_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="LICENSE_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PARENT_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="COSTCENTER_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_CONTRACT_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_COSTCENTER_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="COSTCENTER_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="DATE_START_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="DATE_START_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DATE_END_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MANAGER_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PARENT_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="COSTCENTER_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="DATE_END_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="GL_CODE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_COSTCENTER_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_COSTCENTER_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DATE_START_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="DATE_END_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="COSTCENTER_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MANAGER_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="COSTCENTER_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="DATE_START_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="GL_CODE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PARENT_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="DATE_END_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_COSTCENTER_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_EXCHANGE_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="START_DATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="EXCHANGE_RATE" datatype="DOUBLE" nullable="false" >
</DIColumn>
<DIColumn name="TARGET_CURRENCY" datatype="VARCHAR" size="3" nullable="false" >
</DIColumn>
<DIColumn name="END_DATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="SOURCE_CURRENCY" datatype="VARCHAR" size="3" nullable="false" >
</DIColumn>
<DIColumn name="IS_CURRENT" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_EXCHANGE_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_EXCHANGE_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="END_DATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="SOURCE_CURRENCY" datatype="VARCHAR" size="3" nullable="false" >
</DIColumn>
<DIColumn name="TARGET_CURRENCY" datatype="VARCHAR" size="3" nullable="false" >
</DIColumn>
<DIColumn name="EXCHANGE_RATE" datatype="DOUBLE" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="IS_CURRENT" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="START_DATE" datatype="DATETIME" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_EXCHANGE_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_INCIDENT_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="REQUESTED_BY_ORG" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="REOPEN_TIME_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="ACTIVE_PROCESS" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="CREATE_TIME_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="CLOSE_TIME_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="COMPLETION_CODE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="INCIDENT_STATUS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ASSIGNED_TO_ORG" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ESCALATION" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="CREATE_TIME_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="REFERENCE_NUMBER" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="OUTAGE_START_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="INCIDENT_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PROBLEM_NUMBER" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="REOPEN_TIME_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="IMPACT_SCOPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="OUTAGE_START_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="CLOSE_TIME_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="SUBCATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="OUTAGE_END_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="URGENCY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="SERVICE_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="OUTAGE_END_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PRIORITY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_INCIDENT_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_INCIDENT_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="INCIDENT_STATUS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="CREATE_TIME_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="INCIDENT_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="SUBCATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="CLOSE_TIME_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="IMPACT_SCOPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="COMPLETION_CODE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="URGENCY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PRIORITY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="ESCALATION" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="OUTAGE_END_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="REFERENCE_NUMBER" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ASSIGNED_TO_ORG" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="REOPEN_TIME_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PROBLEM_NUMBER" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="SERVICE_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="OUTAGE_END_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="REQUESTED_BY_ORG" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="OUTAGE_START_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="REOPEN_TIME_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="CLOSE_TIME_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="ACTIVE_PROCESS" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="OUTAGE_START_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="CREATE_TIME_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_INCIDENT_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_INTERACTION_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="URGENCY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="SERVICE_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ACTIVE_PROCESS" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="CUSTOMER_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="FIRST_CALL" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="CLOSE_TIME_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="SUBCATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PROVIDER_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="CREATE_TIME_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="INTERACTION_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PRIORITY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="SURVEY_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="COMPLETION_CODE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="CLOSE_TIME_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="INTERACTION_STATUS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="REFERENCE_NUMBER" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="CREATE_TIME_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_INTERACTION_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_INTERACTION_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="REFERENCE_NUMBER" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="SUBCATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PROVIDER_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="INTERACTION_STATUS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="FIRST_CALL" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="CLOSE_TIME_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="URGENCY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="SERVICE_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="INTERACTION_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="COMPLETION_CODE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="CREATE_TIME_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="SURVEY_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="CLOSE_TIME_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="CUSTOMER_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ACTIVE_PROCESS" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="PRIORITY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="CREATE_TIME_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_INTERACTION_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_MODEL_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="PARENT_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="OS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MODEL_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MODEL_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="PROCESSOR" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MEMORY" datatype="DECIMAL" precision="32" scale="0" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_MODEL_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_MODEL_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PARENT_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="OS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="PROCESSOR" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MODEL_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MEMORY" datatype="DECIMAL" precision="32" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MODEL_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_MODEL_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_PRJOBJECTIVE_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="OBJECTIVE_PRIORITY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="OBJECTIVE_STATE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="OBJECTIVE_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_PRJOBJECTIVE_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_PRJOBJECTIVE_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="OBJECTIVE_STATE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="OBJECTIVE_PRIORITY" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="OBJECTIVE_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_PRJOBJECTIVE_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_PROJECT_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PROJECT_INITIATION_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="ORG_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_APPROVAL_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="RISK_RATING" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="TOTAL_SCORE" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="PLANNED_END_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="START_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_OBJECTIVE_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_MGR_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="WORK_PLAN_CREATED_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="PROJECT_APPROVAL_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_COMPLETED" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_ROLLOUT_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_ACTIVE" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="PARENT_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PLANNED_END_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PLANNED_START_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="WORK_PLAN_CREATED_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="SERVICE_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="END_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PLANNED_START_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="START_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_ROLLOUT_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="HEALTH_INDICATOR" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="STATUS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_INITIATION_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="END_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_PROJECT_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_PROJECT_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="ORG_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PLANNED_START_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PLANNED_END_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="START_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PLANNED_END_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_NAME" datatype="VARCHAR" size="60" nullable="false" >
</DIColumn>
<DIColumn name="START_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="END_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="WORK_PLAN_CREATED_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PLANNED_START_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_COMPLETED" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_CATEGORY" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_NAME_ALT" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_OBJECTIVE_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_ROLLOUT_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="HEALTH_INDICATOR" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="PROJECT_INITIATION_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_APPROVAL_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_ACTIVE" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_ROLLOUT_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="WORK_PLAN_CREATED_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PARENT_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_INITIATION_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_APPROVAL_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="RISK_RATING" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="TOTAL_SCORE" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="SERVICE_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="END_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="STATUS" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_MGR_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="DESCRIPTION" datatype="VARCHAR" size="1024" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_PROJECT_TSNP" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_PROJECTTASK_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="PLANNED_DURATION" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="PERSON_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PLANNED_START_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="ACTUAL_EFFORT" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="END_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="START_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="ORG_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="SERVICE_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="START_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_EXTERNAL_RSC_USED" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="PLANNED_START_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="END_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PLANNED_END_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PLANNED_EFFORT" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="TASK_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PROJECT_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PLANNED_END_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="ESTIMATED_REMAINING_EFFORT" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_PROJECTTASK_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_PROJECTTASK_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PROJECT_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PLANNED_END_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="TASK_NAME" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="END_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="ACTUAL_EFFORT" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="SERVICE_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PERSON_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="END_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PLANNED_START_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PLANNED_DURATION" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="PLANNED_START_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PLANNED_EFFORT" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="START_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="PLANNED_END_DATE_LOC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="FLAG_EXTERNAL_RSC_USED" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="ESTIMATED_REMAINING_EFFORT" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="ORG_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="START_DATE_UTC" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="LOCATION_NAME" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_PROJECTTASK_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_REVENUE_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PLAN_REVENUE_BASE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="PERIOD_START_DATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ACTUAL_REVENUE_BASE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="ACTUAL_REVENUE_LOC" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="PLAN_REVENUE_LOC" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_REVENUE_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_REVENUE_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PLAN_REVENUE_BASE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="ACTUAL_REVENUE_BASE" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="ACTUAL_REVENUE_LOC" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PERIOD_START_DATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PLAN_REVENUE_LOC" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_REVENUE_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_SLAOUTAGE_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="TRACKING_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="PERIODICITY" datatype="VARCHAR" size="20" nullable="true" >
</DIColumn>
<DIColumn name="PERIOD_START_DATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="SLA_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="OUTAGE_COUNT" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="UNPLANNED_DOWNTIME" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="EXPECTED_UPTIME" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_SLAOUTAGE_EXT" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_SLAOUTAGE_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="EXPECTED_UPTIME" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="UNPLANNED_DOWNTIME" datatype="DOUBLE" nullable="true" >
</DIColumn>
<DIColumn name="PERIODICITY" datatype="VARCHAR" size="20" nullable="true" >
</DIColumn>
<DIColumn name="PERIOD_START_DATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="TRACKING_TYPE" datatype="VARCHAR" size="60" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="OUTAGE_COUNT" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="SLA_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_SLAOUTAGE_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DITable name="ALT_SLASTATUS_EXT" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PROVIDER_ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="CONSUMER_ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_FLAG" datatype="VARCHAR" size="10" nullable="true" >
</DIColumn>
<DIColumn name="SLA_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_PF_FLAG" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="MEASURETYPE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="CALENDAR_PERIOD" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="PERIOD_START_DATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="IS_OPEN" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIColumn name="OBJ_MET_COUNT" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="OBJ_COUNT" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="STATUS_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
<DIPrimaryKeyColumn name="MD_CP_ID" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_SLASTATUS_EXT" unique="true">
<DIIndexColumn name="MD_BUSINESS_KEY" />
<DIIndexColumn name="MD_CP_ID" />
</DITableIndex>
</DITable>
<DITable name="ALT_SLASTATUS_TSNP" owner="dws" datastore="SRCSTAGING_DS" database="XsStaging" description="" >
<DIProperties>
<DIAttribute name="Table_Type" value="TABLE" />
<DIAttribute name="Estimated_Row_Count" value="50000" />
<DIAttribute name="Loader_Is_Template_Table" value="no" />
<DIAttribute name="db_alias_name" value="SRCSTAGING_ALIAS" />
</DIProperties>
<DIColumn name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="OBJ_COUNT" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="CALENDAR_PERIOD" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PROVIDER_ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="STATUS_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" nullable="false" >
</DIColumn>
<DIColumn name="OBJ_MET_COUNT" datatype="DECIMAL" precision="16" scale="0" nullable="true" >
</DIColumn>
<DIColumn name="CONSUMER_ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="false" >
</DIColumn>
<DIColumn name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="PERIOD_START_DATE" datatype="DATETIME" nullable="true" >
</DIColumn>
<DIColumn name="MEASURETYPE_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="SLA_BUSINESS_KEY" datatype="VARCHAR" size="100" nullable="true" >
</DIColumn>
<DIColumn name="IS_OPEN" datatype="VARCHAR" size="1" nullable="true" >
</DIColumn>
<DIPrimaryKey>
<DIPrimaryKeyColumn name="MD_CP_ID" />
<DIPrimaryKeyColumn name="MD_BUSINESS_KEY" />
</DIPrimaryKey>
<DITableIndex name="PK_ALT_SLASTATUS_TSNP" unique="true">
<DIIndexColumn name="MD_CP_ID" />
<DIIndexColumn name="MD_BUSINESS_KEY" />
</DITableIndex>
</DITable>
<DIScriptFunction name="ABC_ENDJB_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="#UPDATE STEP_RUNTIME RECORD WITH SUCCESS STATUS AND END TIME&#xA;#GET JOB_ID&#xA;&#xA;$l_status = 'SUCCESS';&#xA;#$now = sysdate();&#xA;&#xA;$l_wf_failed_count = sql('DW_ABC_DS',' select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = \'ERROR\' or status = \'MAX_EXECUTION_TIME_EXCEEDED\')');&#xA;ETL_PRINT( '**     wf_failed_count = {$l_wf_failed_count}' );&#xA;&#xA;$l_wf_success_count = sql('DW_ABC_DS',' select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                     where MD_PROCESS_ID = {$p_process_id} AND status = \'SUCCESS\'');&#xA;ETL_PRINT( '**     wf_success_count = {$l_wf_success_count}' );&#xA;&#xA;$l_am_failed_count = sql('DW_ABC_DS',' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = \'ERROR\' or status = \'MAX_EXECUTION_TIME_EXCEEDED\')');&#xA;ETL_PRINT( '**     am_failed_count = {$l_am_failed_count}' );&#xA;&#xA;$l_am_warning_count = sql('DW_ABC_DS',' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = \'WARNING\'');&#xA;ETL_PRINT( '**     am_warning_count = {$l_am_warning_count}' );&#xA;&#xA;$l_am_success_count = sql('DW_ABC_DS',' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = \'SUCCESS\'');&#xA;ETL_PRINT( '**     am_success_count = {$l_am_success_count}' );&#xA;&#xA;$l_status_info = 'WFs statuses: success: ' || $l_wf_success_count || ', error: '  || $l_wf_failed_count ||' || Audit metrics: success: ' || $l_am_success_count || ', warning: ' || $l_am_warning_count || ', error: ' || $l_am_failed_count || '.';&#xA;&#xA;if ($l_wf_failed_count &gt; 0)&#xA;begin&#xA;&#x9;$l_status = 'ERROR';&#xA;&#x9;$l_reco_action =  'Drill to WF level to access the error message. ';&#xA;end&#x9;&#xA;else if ($l_am_failed_count &gt; 0)&#xA;begin&#xA;&#x9;$l_status = 'ERROR'; &#xA;&#x9;$l_reco_action = $l_reco_action || 'Refer to failed metrics. ';&#xA;end&#xA;else if ($l_am_warning_count &gt; 0)&#xA;begin&#xA;&#x9;$l_status = 'WARNING';&#xA;&#x9;$l_reco_action = $l_reco_action || 'Check WARNING metrics. ';&#xA;end&#xA;&#xA;&#xA;#sql('DW_ABC_DS','update JOB_STREAM_STEP_RT&#xA;#               set STATUS = {$l_status}, STATE = \'FINISHED\' , END_TIME = {sysdate()}, STATUS_INFO = {$l_status_info}, RECO_ACTION = {$l_reco_action}&#xA;#               where MD_PROCESS_ID = {$p_process_id}');&#xA;&#xA;sql('DW_ABC_DS','update JOB_STREAM_STEP_RT&#xA;               set STATUS = {$l_status}, STATE = \'FINISHED\' , END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS_INFO = {$l_status_info}, RECO_ACTION = {$l_reco_action}&#xA;               where MD_PROCESS_ID = {$p_process_id}');&#xA;ETL_PRINT( '**' );&#xA;ETL_PRINT( '**' );&#xA;ETL_PRINT( '** The Job {job_name()} is ending' );&#xA;ETL_PRINT( '**   status: {$l_status}' );&#xA;ETL_PRINT( '**   explanation: {$l_status_info})' );&#xA;ETL_PRINT( '********************************' );&#xA;ETL_PRINT( '********************************' );&#xA;&#xA;return NULL;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_wf_failed_count" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_status" datatype="VARCHAR" size="10" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_wf_success_count" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_status_info" datatype="VARCHAR" size="400" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_am_failed_count" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_am_warning_count" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_am_success_count" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_reco_action" datatype="VARCHAR" size="4000" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIAssignmentStep typeId="12" variable="$l_status" >
<DIExpression isString="true" expr="'SUCCESS'" >
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_wf_failed_count" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', ' select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = \'ERROR\' or status = \'MAX_EXECUTION_TIME_EXCEEDED\')')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value=" select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = 'ERROR' or status = 'MAX_EXECUTION_TIME_EXCEEDED')" datatype="VARCHAR" size="175" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**     wf_failed_count = {$l_wf_failed_count}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**     wf_failed_count = {$l_wf_failed_count}" datatype="VARCHAR" size="45" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_wf_success_count" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', ' select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                     where MD_PROCESS_ID = {$p_process_id} AND status = \'SUCCESS\'')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value=" select count(status) from JOB_STREAM_STEP_DETAIL_RT&#xA;                     where MD_PROCESS_ID = {$p_process_id} AND status = 'SUCCESS'" datatype="VARCHAR" size="134" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**     wf_success_count = {$l_wf_success_count}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**     wf_success_count = {$l_wf_success_count}" datatype="VARCHAR" size="47" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_am_failed_count" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', ' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = \'ERROR\' or status = \'MAX_EXECUTION_TIME_EXCEEDED\')')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value=" select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND (status = 'ERROR' or status = 'MAX_EXECUTION_TIME_EXCEEDED')" datatype="VARCHAR" size="162" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**     am_failed_count = {$l_am_failed_count}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**     am_failed_count = {$l_am_failed_count}" datatype="VARCHAR" size="45" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_am_warning_count" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', ' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = \'WARNING\'')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value=" select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = 'WARNING'" datatype="VARCHAR" size="120" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**     am_warning_count = {$l_am_warning_count}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**     am_warning_count = {$l_am_warning_count}" datatype="VARCHAR" size="47" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_am_success_count" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', ' select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = \'SUCCESS\'')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value=" select count(status) from AUDIT_METRIC&#xA;                    where MD_PROCESS_ID = {$p_process_id} AND status = 'SUCCESS'" datatype="VARCHAR" size="120" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**     am_success_count = {$l_am_success_count}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**     am_success_count = {$l_am_success_count}" datatype="VARCHAR" size="47" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_status_info" >
<DIExpression isString="true" expr="(((((((((('WFs statuses: success: ' || $l_wf_success_count) || ', error: ') || $l_wf_failed_count) || ' || Audit metrics: success: ') || $l_am_success_count) || ', warning: ') || $l_am_warning_count) || ', error: ') || $l_am_failed_count) || '.')" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="WFs statuses: success: " datatype="VARCHAR" size="23" />
<VARIABLE_REFERENCE name="$l_wf_success_count" />
</CONCAT>
<CONSTANT value=", error: " datatype="VARCHAR" size="9" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_wf_failed_count" />
</CONCAT>
<CONSTANT value=" || Audit metrics: success: " datatype="VARCHAR" size="28" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_am_success_count" />
</CONCAT>
<CONSTANT value=", warning: " datatype="VARCHAR" size="11" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_am_warning_count" />
</CONCAT>
<CONSTANT value=", error: " datatype="VARCHAR" size="9" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_am_failed_count" />
</CONCAT>
<CONSTANT value="." datatype="VARCHAR" size="1" />
</CONCAT>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_wf_failed_count &gt; 0)" >
<LOGICAL_OP op="GT">
<VARIABLE_REFERENCE name="$l_wf_failed_count" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_status" >
<DIExpression isString="true" expr="'ERROR'" >
<CONSTANT value="ERROR" datatype="VARCHAR" size="5" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_reco_action" >
<DIExpression isString="true" expr="'Drill to WF level to access the error message. '" >
<CONSTANT value="Drill to WF level to access the error message. " datatype="VARCHAR" size="47" />
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_am_failed_count &gt; 0)" >
<LOGICAL_OP op="GT">
<VARIABLE_REFERENCE name="$l_am_failed_count" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_status" >
<DIExpression isString="true" expr="'ERROR'" >
<CONSTANT value="ERROR" datatype="VARCHAR" size="5" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_reco_action" >
<DIExpression isString="true" expr="($l_reco_action || 'Refer to failed metrics. ')" >
<CONCAT>
<VARIABLE_REFERENCE name="$l_reco_action" />
<CONSTANT value="Refer to failed metrics. " datatype="VARCHAR" size="25" />
</CONCAT>
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_am_warning_count &gt; 0)" >
<LOGICAL_OP op="GT">
<VARIABLE_REFERENCE name="$l_am_warning_count" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_status" >
<DIExpression isString="true" expr="'WARNING'" >
<CONSTANT value="WARNING" datatype="VARCHAR" size="7" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_reco_action" >
<DIExpression isString="true" expr="($l_reco_action || 'Check WARNING metrics. ')" >
<CONCAT>
<VARIABLE_REFERENCE name="$l_reco_action" />
<CONSTANT value="Check WARNING metrics. " datatype="VARCHAR" size="23" />
</CONCAT>
</DIExpression>
</DIAssignmentStep>
</DIIf>
</DIIfStep>
</DIElse>
</DIIfStep>
</DIElse>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_RT&#xA;               set STATUS = {$l_status}, STATE = \'FINISHED\' , END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS_INFO = {$l_status_info}, RECO_ACTION = {$l_reco_action}&#xA;               where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_RT&#xA;               set STATUS = {$l_status}, STATE = 'FINISHED' , END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS_INFO = {$l_status_info}, RECO_ACTION = {$l_reco_action}&#xA;               where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="272" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('** The Job {job_name()} is ending')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="** The Job {job_name()} is ending" datatype="VARCHAR" size="33" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**   status: {$l_status}')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**   status: {$l_status}" datatype="VARCHAR" size="24" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**   explanation: {$l_status_info})')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**   explanation: {$l_status_info})" datatype="VARCHAR" size="35" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="********************************" datatype="VARCHAR" size="32" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="********************************" datatype="VARCHAR" size="32" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_ENDWF_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="&#xA;# LOOP THROUGH ALL VALUES IN INPUT PARAMETER TARGET_TABLE FIELD&#xA;# UPDATE EACH VALUE (IN DELIMITED STRING) AS SINGLE RECORD WITH ENDDATE&#xA;# CHECK THAT ABC_ENDWF_FN CANNOT BE CALLED BEFORE ABC_STARTWF_FN&#xA;&#xA;$l_previous_status = sql('DW_ABC_DS','select STATUS from JOB_STREAM_STEP_DETAIL_RT&#xA;                                      where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ');&#xA;&#xA;if ($l_previous_status is null)&#xA;#  sql('DW_ABC_DS','insert into JOB_STREAM_STEP_DETAIL_RT &#xA;#                   (MD_PROCESS_ID, DETAIL_NAME, STATUS, END_TIME)  &#xA;#                   VALUES ({$p_process_id}, {$p_detailname}, \'ERROR\', {sysdate()})');&#x9;&#xD;&#xA;  sql('DW_ABC_DS','insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                   (MD_PROCESS_ID, DETAIL_NAME, STATUS, END_TIME)  &#xA;                   VALUES ({$p_process_id}, {$p_detailname}, \'ERROR\', convert(datetime,{sysdate()},111))');&#x9;&#xA;else&#xA;  begin&#xA;    if ($l_previous_status = 'RUNNING')&#xA;      sql('DW_ABC_DS','update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = \'SUCCESS\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ');&#xA;&#x9;else&#xA;      sql('DW_ABC_DS','update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = \'ERROR\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ');&#xA;&#x9;&#xA;  end&#xA;&#xA;ETL_PRINT( '        ** The workflow: [workflow_name()] is ending' );&#xA;ETL_PRINT( '        **   user: ' || system_user_name() );&#xA;ETL_PRINT( '        **   detail name: ' || $p_detailname );&#xA;ETL_PRINT( '        ********************************' );&#xA;ETL_PRINT( '        ********************************' );&#xA;&#xA;return NULL;&#xA;&#xA;&#xA;&#xA;&#xA;  "/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_detailname" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_previous_status" datatype="VARCHAR" size="12" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIAssignmentStep typeId="12" variable="$l_previous_status" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'select STATUS from JOB_STREAM_STEP_DETAIL_RT&#xA;                                      where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="select STATUS from JOB_STREAM_STEP_DETAIL_RT&#xA;                                      where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} " datatype="VARCHAR" size="155" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_previous_status IS  NULL )" >
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$l_previous_status" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                   (MD_PROCESS_ID, DETAIL_NAME, STATUS, END_TIME)  &#xA;                   VALUES ({$p_process_id}, {$p_detailname}, \'ERROR\', convert(datetime,{sysdate()},111))')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                   (MD_PROCESS_ID, DETAIL_NAME, STATUS, END_TIME)  &#xA;                   VALUES ({$p_process_id}, {$p_detailname}, 'ERROR', convert(datetime,{sysdate()},111))" datatype="VARCHAR" size="211" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_previous_status = 'RUNNING')" >
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$l_previous_status" />
<CONSTANT value="RUNNING" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = \'SUCCESS\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = 'SUCCESS', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} " datatype="VARCHAR" size="243" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = \'ERROR\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_DETAIL_RT&#xA;                       set STATUS = 'ERROR', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                       where MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} " datatype="VARCHAR" size="241" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIElse>
</DIIfStep>
</DIElse>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ** The workflow: [workflow_name()] is ending')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ** The workflow: [workflow_name()] is ending" datatype="VARCHAR" size="52" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   user: ' || system_user_name()))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   user: " datatype="VARCHAR" size="19" />
<FUNCTION_CALL name="system_user_name"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   detail name: ' || $p_detailname))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   detail name: " datatype="VARCHAR" size="26" />
<VARIABLE_REFERENCE name="$p_detailname" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_FAILJB_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="# IN EVENT THE JOB FAILED, UPDATE JOB RECORD WITH FAIL STATUS&#xA;&#xA;&#xA;if ($p_process_id is null)&#xA;  begin&#xA; &#x9; ETL_PRINT( 'ENTERED THE JOB CATCH BEFORE THE PROCESS_ID COULD BE SET (debug mode specific error)' );&#xA; &#x9; ETL_PRINT( 'AN ERROR RAISED BEFORE the execution of the job start script (this exception will not be recorded by ABC infrastructure)' );&#xA;  end&#xA;else&#xA;  begin&#xA;&#x9; $l_status_text = replace_substr( $p_status_info, '\'','\'\'');&#xA; &#x9; sql('DW_ABC_DS','update JOB_STREAM_STEP_RT&#xA;                 set STATE = \'FINISHED\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS = \'ERROR\', STATUS_INFO = {$l_status_text}&#xA;                 where  MD_PROCESS_ID = {$p_process_id} ');&#xA;&#xA;  end&#xA;&#xA;&#xA;ETL_PRINT( '        ** The Job : [job_name()] FAILED' );&#xA;ETL_PRINT( '        **   user: ' || system_user_name() );&#xA;ETL_PRINT( '        **   status info: ' || $p_status_info );&#xA;ETL_PRINT( '        ********************************' );&#xA;ETL_PRINT( '        ********************************' );&#xA;&#xA;return NULL;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
<DIAttribute name="Parallelizable" value="no"/>
<DIAttribute name="isScriptValidationFunction" value="no"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$p_status_info" datatype="VARCHAR" size="400" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_status_text" datatype="VARCHAR" size="400" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($p_process_id IS  NULL )" >
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$p_process_id" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('ENTERED THE JOB CATCH BEFORE THE PROCESS_ID COULD BE SET (debug mode specific error)')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="ENTERED THE JOB CATCH BEFORE THE PROCESS_ID COULD BE SET (debug mode specific error)" datatype="VARCHAR" size="84" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('AN ERROR RAISED BEFORE the execution of the job start script (this exception will not be recorded by ABC infrastructure)')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="AN ERROR RAISED BEFORE the execution of the job start script (this exception will not be recorded by ABC infrastructure)" datatype="VARCHAR" size="120" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$l_status_text" >
<DIExpression isString="true" expr="replace_substr($p_status_info, '\'', '\'\'')" >
<FUNCTION_CALL name="replace_substr"  type="DI" >
<VARIABLE_REFERENCE name="$p_status_info" />
<CONSTANT value="'" datatype="VARCHAR" size="1" />
<CONSTANT value="''" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_RT&#xA;                 set STATE = \'FINISHED\', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS = \'ERROR\', STATUS_INFO = {$l_status_text}&#xA;                 where  MD_PROCESS_ID = {$p_process_id} ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_RT&#xA;                 set STATE = 'FINISHED', END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127), STATUS = 'ERROR', STATUS_INFO = {$l_status_text}&#xA;                 where  MD_PROCESS_ID = {$p_process_id} " datatype="VARCHAR" size="241" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIElse>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ** The Job : [job_name()] FAILED')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ** The Job : [job_name()] FAILED" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   user: ' || system_user_name()))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   user: " datatype="VARCHAR" size="19" />
<FUNCTION_CALL name="system_user_name"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   status info: ' || $p_status_info))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   status info: " datatype="VARCHAR" size="26" />
<VARIABLE_REFERENCE name="$p_status_info" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_FAILWF_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="# IN EVENT THE WORKFLOW FAILED, UPDATE WORKFLOW RECORD WITH FAIL STATUS&#xA;&#xA;$l_status_text = replace_substr( $p_status_info, '\'','\'\'');&#xA;&#xA;sql('DW_ABC_DS','update JOB_STREAM_STEP_DETAIL_RT&#xA;                 set STATUS = \'ERROR\', STATUS_INFO = {$l_status_text}, END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                 where  MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ');&#xA;&#xA;ETL_PRINT( '        ** The workflow: [workflow_name()] FAILED' );&#xA;ETL_PRINT( '        **   user: ' || system_user_name() );&#xA;ETL_PRINT( '        **   status info: ' || $p_status_info );&#xA;ETL_PRINT( '        **   detail name: ' || $p_detailname );&#xA;ETL_PRINT( '        ********************************' );&#xA;ETL_PRINT( '        ********************************' );&#xA;&#xA;return NULL;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_detailname" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$p_status_info" datatype="VARCHAR" size="400" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_status_text" datatype="VARCHAR" size="400" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIAssignmentStep typeId="12" variable="$l_status_text" >
<DIExpression isString="true" expr="replace_substr($p_status_info, '\'', '\'\'')" >
<FUNCTION_CALL name="replace_substr"  type="DI" >
<VARIABLE_REFERENCE name="$p_status_info" />
<CONSTANT value="'" datatype="VARCHAR" size="1" />
<CONSTANT value="''" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_DETAIL_RT&#xA;                 set STATUS = \'ERROR\', STATUS_INFO = {$l_status_text}, END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                 where  MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_DETAIL_RT&#xA;                 set STATUS = 'ERROR', STATUS_INFO = {$l_status_text}, END_TIME = convert(varchar(25),convert(datetime,getdate(),111),127)&#xA;                 where  MD_PROCESS_ID = {$p_process_id} AND DETAIL_NAME = {$p_detailname} " datatype="VARCHAR" size="262" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ** The workflow: [workflow_name()] FAILED')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ** The workflow: [workflow_name()] FAILED" datatype="VARCHAR" size="49" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   user: ' || system_user_name()))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   user: " datatype="VARCHAR" size="19" />
<FUNCTION_CALL name="system_user_name"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   status info: ' || $p_status_info))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   status info: " datatype="VARCHAR" size="26" />
<VARIABLE_REFERENCE name="$p_status_info" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   detail name: ' || $p_detailname))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   detail name: " datatype="VARCHAR" size="26" />
<VARIABLE_REFERENCE name="$p_detailname" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_STARTJB_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="#$l_job_start_date = sysdate( );&#xD;&#xA;$l_job_start_date = sql('DW_ABC_DS','select getdate()');&#xD;&#xA;$l_job_start_date_vchar = sql('DW_ABC_DS','select convert(varchar(25),convert(datetime,{$l_job_start_date},111),127)');&#xD;&#xA;ETL_PRINT('l_job_start_date_vchar = '|| $l_job_start_date_vchar);&#xD;&#xA;#sql('DW_ABC_DS','select convert(datetime,GETDATE()-5,111)');&#xD;&#xA;#;&#xA;# the job may have been called from the DW scheduler as part of a job stream&#xA;# or it may be launched manually &#xA;# if the job is called as part of a job stream&#xA;#   then its row in DW_ABC_DS.STEP_RUNTIME identified by $G_STEP_RT_ID  has already &#xA;#   been created with a WAITING status&#xA;# else&#xA;#   the job has been launched out of a stream context, it will create its own entry &#xA;#   flagged as MANUAL in DW_ABC_DS.STEP_RUNTIME&#xA;       &#xA;if ($p_debug_mode is null or not $p_debug_mode = 1)&#xA;  begin&#xA;    if ($p_process_id is null)&#xA;      begin&#xA;&#x9;    ETL_PRINT( 'ERROR: $G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1' );&#xA;        raise_exception('$G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1');&#xA;      end&#xA;    # retrieve the batch id from the STEP_RUNTIME table&#xA;    $p_batch_id = sql('DW_ABC_DS',&#xA;      'SELECT MD_BATCH_ID FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}');&#xA;    if ($p_batch_id is null)&#xA;      begin&#xA;&#x9;    ETL_PRINT( 'ERROR: Process ' || $p_process_id || ' not found in STEP_RUNTIME table.' );&#xA;        raise_exception('process '||$p_process_id||' is not found in STEP_RUNTIME table.');&#xA;      end&#xA;  end&#xA;else&#xA;  begin&#xA;    if ($p_process_id is not null)&#xA;      begin&#xA;&#x9;    ETL_PRINT( 'ERROR: abC usage error detected : $G_DEBUG_MODE is set to ' || $p_debug_mode || ' but $G_PROCESS_ID is not null (set to '||$p_process_id||'). In debug mode Process ID will be allocated by the job and cannot be specified');&#xA;        raise_exception('ERROR: abC usage error detected : $G_DEBUG_MODE is set to ' || $p_debug_mode || ' but $G_PROCESS_ID is not null (set to '||$p_process_id||'). in debug mode Process ID will be allocated by the system and cannot be specified');&#xA;      end&#xA;    # create the job level row in DW_ABC_DS.STEP_RUNTIME note that only a basic row without start dates is created &#xA;  &#x9;# this will be done in code shared for scheduled and manual rows&#xA;&#xD;&#xA;#    sql('DW_ABC_DS','insert into JOB_STREAM_STEP_RT (JOB_NAME, START_TIME, STEP_OWNER, STATE) &#xA;#                     VALUES ({job_name()},{$l_job_start_date}, \'MANUAL\', \'STARTING\')');&#xA;&#xD;&#xA;    sql('DW_ABC_DS','insert into JOB_STREAM_STEP_RT (JOB_NAME, START_TIME, STEP_OWNER, STATE) &#xA;                     VALUES ({job_name()},{$l_job_start_date_vchar}, \'MANUAL\', \'STARTING\')');&#xA;  &#x9;# retrieve the row ID affected by the DB, this ID will be used for any future reference to the STEP_RUNTIME table&#xA;# &#x9;$p_process_id = sql('DW_ABC_DS','SELECT MD_PROCESS_ID from JOB_STREAM_STEP_RT where JOB_NAME = {job_name()} AND START_TIME = {$l_job_start_date} AND STEP_OWNER = \'MANUAL\' AND STATE =  \'STARTING\' ');&#xA;#&#x9;ETL_PRINT( 'After manual launch, the assigned Process ID is: ' || $p_process_id );&#xA;&#xD;&#xA; &#x9;$p_process_id = sql('DW_ABC_DS','SELECT MD_PROCESS_ID from JOB_STREAM_STEP_RT where JOB_NAME = {job_name()} AND START_TIME = {$l_job_start_date_vchar} AND STEP_OWNER = \'MANUAL\' AND STATE =  \'STARTING\' ');&#xA;&#x9;ETL_PRINT( 'After manual launch, the assigned Process ID is: ' || $p_process_id );&#xA;&#x9;# No new batch is created in debug mode, but set 0 to batch-id variable to have a not null value&#xA;&#x9;$p_batch_id = 0;&#xA;  end&#xA;&#xA;&#xA;ETL_PRINT ( 'Process ' || $p_process_id || ' retrieved $p_batch_id = {$p_batch_id}' );&#xA;$l_state = sql('DW_ABC_DS',&#xA;      'SELECT STATE FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}');&#xA;$l_job_name = sql('DW_ABC_DS',&#xA;      'SELECT JOB_NAME FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}');&#xA;&#xA;if ($l_state != 'STARTING' )&#xA;begin&#xA;    sql('DW_ABC_DS','update JOB_STREAM_STEP_RT set STATUS_INFO = \'Tried to run job, but it is not in a runnable state.\' &#xA;         where MD_PROCESS_ID = {$p_process_id}');&#xA;    raise_exception('ERROR: This job is not in a runnable state. This may come from Web Service timeout, the job will not execute and a new one will be trigered by ABC (if not already done)');&#xA;end&#xA;&#xA;if ($l_job_name != job_name() )&#xA;begin&#xA;   # sql('DW_ABC_DS','update JOB_STREAM_STEP_RT set STATUS_INFO = \'This job, {job_name()}, does not match the JOB_NAME of the step you are trying to run ($l_job_name).\' &#xA;   #      where MD_PROCESS_ID = {$p_process_id}');&#xA;    raise_exception('ERROR: This job, {job_name()}, does not match the JOB_NAME of the step you are trying to run (' || $l_job_name || ').');&#xA;end&#xA;&#xA;# now flag the job as running&#xD;&#xA;#sql('DW_ABC_DS','update JOB_STREAM_STEP_RT set STATE = \'RUNNING\',&#xA;#JOB_NAME = {job_name()}, START_TIME = convert(datetime,{$l_job_start_date},111)&#xA;#where MD_PROCESS_ID = {$p_process_id}');&#xA;sql('DW_ABC_DS','update JOB_STREAM_STEP_RT set STATE = \'RUNNING\',&#xA;JOB_NAME = {job_name()}, START_TIME = {$l_job_start_date_vchar}&#xA;where MD_PROCESS_ID = {$p_process_id}');&#xA;&#xA;set_env( 'ETL_DEBUG_MODE', $p_debug_mode );&#xA;set_env( 'ETL_BATCH_ID', $p_batch_id);&#xA;set_env( 'ETL_PROCESS_ID', $p_process_id );&#xA;if ( is_set_env( 'ETL_TRACE_LEVEL' ) != 1 )&#xA;begin&#xA;&#x9;set_env( 'ETL_TRACE_LEVEL', 'ALL' );&#xA;end&#xA;&#xA;ETL_PRINT( '********************************' );&#xA;ETL_PRINT( '********************************' );&#xA;ETL_PRINT( '** The Job {job_name()} is starting' || ifthenelse((get_env('ETL_DEBUG_MODE') = '1'), ' in Debug mode', '') || '.');&#xA;ETL_PRINT( '**' );&#xA;ETL_PRINT( '**' );&#xA;&#xA;return (5);&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN_OUT" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$p_debug_mode" datatype="INT" >
</DIElement>
<DIElement paramType="OUT" name="$p_batch_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_previous_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_sqltext" datatype="VARCHAR" size="80" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_job_start_date" datatype="DATETIME" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_state" datatype="VARCHAR" size="30" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_job_name" datatype="VARCHAR" size="60" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_job_start_date_vchar" datatype="VARCHAR" size="25" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="DATETIME" />
<DISteps>
<DIAssignmentStep typeId="12" variable="$l_job_start_date" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'select getdate()')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="select getdate()" datatype="VARCHAR" size="16" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_job_start_date_vchar" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'select convert(varchar(25),convert(datetime,{$l_job_start_date},111),127)')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="select convert(varchar(25),convert(datetime,{$l_job_start_date},111),127)" datatype="VARCHAR" size="73" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('l_job_start_date_vchar = ' || $l_job_start_date_vchar))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="l_job_start_date_vchar = " datatype="VARCHAR" size="25" />
<VARIABLE_REFERENCE name="$l_job_start_date_vchar" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(($p_debug_mode IS  NULL ) OR&#xA;   ( not ($p_debug_mode = 1)))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$p_debug_mode" />
</LOGICAL_OP>
<LOGICAL_OP op="NOT">
<LOGICAL_OP op="EQ">
<VARIABLE_REFERENCE name="$p_debug_mode" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($p_process_id IS  NULL )" >
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$p_process_id" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('ERROR: $G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="ERROR: $G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1" datatype="VARCHAR" size="98" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="raise_exception('$G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1')" >
<FUNCTION_CALL name="raise_exception"  type="DI" >
<CONSTANT value="$G_PROCESS_ID is not set. If you want to run manually the job, you must set $G_DEBUG_MODE=1" datatype="VARCHAR" size="91" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
<DIAssignmentStep typeId="12" variable="$p_batch_id" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'SELECT MD_BATCH_ID FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="SELECT MD_BATCH_ID FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="80" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($p_batch_id IS  NULL )" >
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$p_batch_id" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((('ERROR: Process ' || $p_process_id) || ' not found in STEP_RUNTIME table.'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="ERROR: Process " datatype="VARCHAR" size="15" />
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
<CONSTANT value=" not found in STEP_RUNTIME table." datatype="VARCHAR" size="33" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="raise_exception((('process ' || $p_process_id) || ' is not found in STEP_RUNTIME table.'))" >
<FUNCTION_CALL name="raise_exception"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="process " datatype="VARCHAR" size="8" />
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
<CONSTANT value=" is not found in STEP_RUNTIME table." datatype="VARCHAR" size="36" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
</DIIf>
<DIElse>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($p_process_id IS NOT  NULL )" >
<LOGICAL_OP op="IS NOT NULL">
<VARIABLE_REFERENCE name="$p_process_id" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('ERROR: abC usage error detected : $G_DEBUG_MODE is set to ' || $p_debug_mode) || ' but $G_PROCESS_ID is not null (set to ') || $p_process_id) || '). In debug mode Process ID will be allocated by the job and cannot be specified'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="ERROR: abC usage error detected : $G_DEBUG_MODE is set to " datatype="VARCHAR" size="58" />
<VARIABLE_REFERENCE name="$p_debug_mode" />
</CONCAT>
<CONSTANT value=" but $G_PROCESS_ID is not null (set to " datatype="VARCHAR" size="39" />
</CONCAT>
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
<CONSTANT value="). In debug mode Process ID will be allocated by the job and cannot be specified" datatype="VARCHAR" size="80" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="raise_exception((((('ERROR: abC usage error detected : $G_DEBUG_MODE is set to ' || $p_debug_mode) || ' but $G_PROCESS_ID is not null (set to ') || $p_process_id) || '). in debug mode Process ID will be allocated by the system and cannot be specified'))" >
<FUNCTION_CALL name="raise_exception"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="ERROR: abC usage error detected : $G_DEBUG_MODE is set to " datatype="VARCHAR" size="58" />
<VARIABLE_REFERENCE name="$p_debug_mode" />
</CONCAT>
<CONSTANT value=" but $G_PROCESS_ID is not null (set to " datatype="VARCHAR" size="39" />
</CONCAT>
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
<CONSTANT value="). in debug mode Process ID will be allocated by the system and cannot be specified" datatype="VARCHAR" size="83" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'insert into JOB_STREAM_STEP_RT (JOB_NAME, START_TIME, STEP_OWNER, STATE) &#xA;                     VALUES ({job_name()},{$l_job_start_date_vchar}, \'MANUAL\', \'STARTING\')')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="insert into JOB_STREAM_STEP_RT (JOB_NAME, START_TIME, STEP_OWNER, STATE) &#xA;                     VALUES ({job_name()},{$l_job_start_date_vchar}, 'MANUAL', 'STARTING')" datatype="VARCHAR" size="164" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$p_process_id" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'SELECT MD_PROCESS_ID from JOB_STREAM_STEP_RT where JOB_NAME = {job_name()} AND START_TIME = {$l_job_start_date_vchar} AND STEP_OWNER = \'MANUAL\' AND STATE =  \'STARTING\' ')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="SELECT MD_PROCESS_ID from JOB_STREAM_STEP_RT where JOB_NAME = {job_name()} AND START_TIME = {$l_job_start_date_vchar} AND STEP_OWNER = 'MANUAL' AND STATE =  'STARTING' " datatype="VARCHAR" size="168" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('After manual launch, the assigned Process ID is: ' || $p_process_id))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="After manual launch, the assigned Process ID is: " datatype="VARCHAR" size="49" />
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$p_batch_id" >
<DIExpression isString="true" expr="0" >
<CONSTANT value="0" datatype="INT" />
</DIExpression>
</DIAssignmentStep>
</DIElse>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((('Process ' || $p_process_id) || ' retrieved $p_batch_id = {$p_batch_id}'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="Process " datatype="VARCHAR" size="8" />
<VARIABLE_REFERENCE name="$p_process_id" />
</CONCAT>
<CONSTANT value=" retrieved $p_batch_id = {$p_batch_id}" datatype="VARCHAR" size="38" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_state" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'SELECT STATE FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="SELECT STATE FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="74" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$l_job_name" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'SELECT JOB_NAME FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="SELECT JOB_NAME FROM JOB_STREAM_STEP_RT where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="77" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_state != 'STARTING')" >
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$l_state" />
<CONSTANT value="STARTING" datatype="VARCHAR" size="8" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_RT set STATUS_INFO = \'Tried to run job, but it is not in a runnable state.\' &#xA;         where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_RT set STATUS_INFO = 'Tried to run job, but it is not in a runnable state.' &#xA;         where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="146" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="raise_exception('ERROR: This job is not in a runnable state. This may come from Web Service timeout, the job will not execute and a new one will be trigered by ABC (if not already done)')" >
<FUNCTION_CALL name="raise_exception"  type="DI" >
<CONSTANT value="ERROR: This job is not in a runnable state. This may come from Web Service timeout, the job will not execute and a new one will be trigered by ABC (if not already done)" datatype="VARCHAR" size="168" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($l_job_name != job_name())" >
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$l_job_name" />
<FUNCTION_CALL name="job_name"  type="DI" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="raise_exception((('ERROR: This job, {job_name()}, does not match the JOB_NAME of the step you are trying to run (' || $l_job_name) || ').'))" >
<FUNCTION_CALL name="raise_exception"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="ERROR: This job, {job_name()}, does not match the JOB_NAME of the step you are trying to run (" datatype="VARCHAR" size="94" />
<VARIABLE_REFERENCE name="$l_job_name" />
</CONCAT>
<CONSTANT value=")." datatype="VARCHAR" size="2" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'update JOB_STREAM_STEP_RT set STATE = \'RUNNING\',&#xA;JOB_NAME = {job_name()}, START_TIME = {$l_job_start_date_vchar}&#xA;where MD_PROCESS_ID = {$p_process_id}')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="update JOB_STREAM_STEP_RT set STATE = 'RUNNING',&#xA;JOB_NAME = {job_name()}, START_TIME = {$l_job_start_date_vchar}&#xA;where MD_PROCESS_ID = {$p_process_id}" datatype="VARCHAR" size="150" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="set_env('ETL_DEBUG_MODE', $p_debug_mode)" >
<FUNCTION_CALL name="set_env"  type="DI" >
<CONSTANT value="ETL_DEBUG_MODE" datatype="VARCHAR" size="14" />
<VARIABLE_REFERENCE name="$p_debug_mode" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="set_env('ETL_BATCH_ID', $p_batch_id)" >
<FUNCTION_CALL name="set_env"  type="DI" >
<CONSTANT value="ETL_BATCH_ID" datatype="VARCHAR" size="12" />
<VARIABLE_REFERENCE name="$p_batch_id" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="set_env('ETL_PROCESS_ID', $p_process_id)" >
<FUNCTION_CALL name="set_env"  type="DI" >
<CONSTANT value="ETL_PROCESS_ID" datatype="VARCHAR" size="14" />
<VARIABLE_REFERENCE name="$p_process_id" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(is_set_env('ETL_TRACE_LEVEL') != 1)" >
<LOGICAL_OP op="NE">
<FUNCTION_CALL name="is_set_env"  type="DI" >
<CONSTANT value="ETL_TRACE_LEVEL" datatype="VARCHAR" size="15" />
</FUNCTION_CALL>
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="set_env('ETL_TRACE_LEVEL', 'ALL')" >
<FUNCTION_CALL name="set_env"  type="DI" >
<CONSTANT value="ETL_TRACE_LEVEL" datatype="VARCHAR" size="15" />
<CONSTANT value="ALL" datatype="VARCHAR" size="3" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
</DIIfStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="********************************" datatype="VARCHAR" size="32" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="********************************" datatype="VARCHAR" size="32" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((('** The Job {job_name()} is starting' || ifthenelse((get_env('ETL_DEBUG_MODE') = '1'), ' in Debug mode', '')) || '.'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONSTANT value="** The Job {job_name()} is starting" datatype="VARCHAR" size="35" />
<FUNCTION_CALL name="ifthenelse"  type="DI" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="get_env"  type="DI" >
<CONSTANT value="ETL_DEBUG_MODE" datatype="VARCHAR" size="14" />
</FUNCTION_CALL>
<CONSTANT value="1" datatype="VARCHAR" size="1" />
</LOGICAL_OP>
<CONSTANT value=" in Debug mode" datatype="VARCHAR" size="14" />
<CONSTANT value="" datatype="VARCHAR" size="0" />
</FUNCTION_CALL>
</CONCAT>
<CONSTANT value="." datatype="VARCHAR" size="1" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('**')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="**" datatype="VARCHAR" size="2" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr="5" >
<CONSTANT value="5" datatype="INT" />
</DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ABC_STARTWF_FN" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="ETL_PRINT( '        ********************************' );&#xA;ETL_PRINT( '        ********************************' );&#xA;ETL_PRINT( '        ** The workflow [workflow_name()] is starting' );&#xA;ETL_PRINT( '        **   user: ' || system_user_name() );&#xA;ETL_PRINT( '        **   detail name: ' || $p_detailname );&#xA;&#xA;# DELETE EXISTING WORKFLOW RECORD&#xA;#sql('DW_ABC_DS','delete from RDS_DBA.WFEXECUTION_DW&#xA;#where APPNAME = {$p_appname} AND JOBNAME = {job_name()} AND WFNAME = {workflow_name()}&#xA;#AND TARGET_TABLE = {$l_single_tablename}');&#xA;&#xA;# GET MAX_ID FROM THE WFEXECUTION_DW TABLE&#xA;#$job_ maxkey = sql('DW_ABC_DS', 'SELECT MAX(JOB_ID) FROM RDS_DBA.ETLSYNC_DW');&#xA;#$maxkey = $maxkey + 1;&#xA;&#xA;# INSERT WORKFLOW RECORD&#x9;&#x9;&#xD;&#xA;&#xA;#$l_stepdetail_id = sql('DW_ABC_DS','insert into JOB_STREAM_STEP_DETAIL_RT &#xA;#                (MD_PROCESS_ID, DETAIL_NAME, STATUS, START_TIME)  &#xA;#                VALUES ({$p_process_id}, {$p_detailname}, \'RUNNING\', {sysdate()});&#xA;#&#x9;&#x9;&#x9;&#x9;SELECT SCOPE_IDENTITY() AS NewStepDetailID');&#xA;$l_stepdetail_id = sql('DW_ABC_DS','insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                (MD_PROCESS_ID, DETAIL_NAME, STATUS, START_TIME)  &#xA;                VALUES ({$p_process_id}, {$p_detailname}, \'RUNNING\', convert(varchar(25),convert(datetime,getdate(),111),127));&#xA;&#x9;&#x9;&#x9;&#x9;SELECT SCOPE_IDENTITY() AS NewStepDetailID');&#x9;&#xA;&#xA;set_env(workflow_name(), $l_stepdetail_id);&#xA;&#xA;# print('single_tablename = ' || $l_single_tablename);&#x9;   &#x9;&#xA;&#xA;return null;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_detailname" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="IN" name="$p_process_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_stepdetail_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ********************************')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ********************************" datatype="VARCHAR" size="40" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print('        ** The workflow [workflow_name()] is starting')" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONSTANT value="        ** The workflow [workflow_name()] is starting" datatype="VARCHAR" size="53" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   user: ' || system_user_name()))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   user: " datatype="VARCHAR" size="19" />
<FUNCTION_CALL name="system_user_name"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print(('        **   detail name: ' || $p_detailname))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONSTANT value="        **   detail name: " datatype="VARCHAR" size="26" />
<VARIABLE_REFERENCE name="$p_detailname" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIAssignmentStep typeId="12" variable="$l_stepdetail_id" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', 'insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                (MD_PROCESS_ID, DETAIL_NAME, STATUS, START_TIME)  &#xA;                VALUES ({$p_process_id}, {$p_detailname}, \'RUNNING\', convert(varchar(25),convert(datetime,getdate(),111),127));&#xA;&#x9;&#x9;&#x9;&#x9;SELECT SCOPE_IDENTITY() AS NewStepDetailID')" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<CONSTANT value="insert into JOB_STREAM_STEP_DETAIL_RT &#xA;                (MD_PROCESS_ID, DETAIL_NAME, STATUS, START_TIME)  &#xA;                VALUES ({$p_process_id}, {$p_detailname}, 'RUNNING', convert(varchar(25),convert(datetime,getdate(),111),127));&#xA;&#x9;&#x9;&#x9;&#x9;SELECT SCOPE_IDENTITY() AS NewStepDetailID" datatype="VARCHAR" size="280" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="set_env(workflow_name(), $l_stepdetail_id)" >
<FUNCTION_CALL name="set_env"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$l_stepdetail_id" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="ETL_PRINT" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="# 1/2 Retrieve contextual information from the environment&#xA;if ( is_set_env( 'ETL_BATCH_ID' ) = 1 )&#xA;begin&#xA;&#x9;$l_batch_id = get_env( 'ETL_BATCH_ID' );&#xA;end&#xA;else&#xA;begin&#xA;&#x9;$l_batch_id = '-';&#xA;end&#xA;&#xA;if ( is_set_env( 'ETL_PROCESS_ID' ) = 1 )&#xA;begin&#xA;&#x9;$l_process_id = get_env( 'ETL_PROCESS_ID' );&#x9;&#xA;end&#xA;else&#xA;begin&#xA;&#x9;$l_process_id = '-';&#x9;&#xA;end&#xA;&#xA;# 2/2 Really print&#xA;if ( get_env('ETL_TRACE_LEVEL') = 'ALL' )&#xA;begin&#xA;&#x9;if ( is_set_env( workflow_name() ) = 1 )&#xA;&#x9;begin&#xA;&#x9;&#x9;$l_stepdetail_id = get_env( workflow_name() );&#xA;&#x9;&#x9;print( '\[Batch:' || $l_batch_id || '\] \[Proc:' || $l_process_id || '\] \[Detail:' || $l_stepdetail_id || '\] ' || $p_MESSAGE );&#xA;&#x9;end&#xA;&#x9;else&#xA;&#x9;begin&#xA;    &#x9;print( '\[Batch:' || $l_batch_id || '\] \[Proc:' || $l_process_id || '\] ' || $p_MESSAGE );&#xA;&#x9;end&#xA;end&#xA;&#xA;return null;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
<DIAttribute name="Description" value="This function is internal and should NOT be used by application developers.&#xA;&#xA;This function prints the parameter message to the logs with contextual information (batch id, process id) as set by the ABC_STARTJB_FN function.&#xA;&#xA;This trace file is currently the standard Data Services trace file. for instance: C:\Program Files\Business Objects\BusinessObjects Data Services\log\tracelog.txt"/>
<DIAttribute name="Parallelizable" value="no"/>
<DIAttribute name="isScriptValidationFunction" value="no"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$p_MESSAGE" datatype="VARCHAR" size="256" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$l_batch_id" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_process_id" datatype="INT" >
</DIElement>
<DIElement paramType="LOCAL" name="$l_stepdetail_id" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="INT" />
<DISteps>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(is_set_env('ETL_BATCH_ID') = 1)" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="is_set_env"  type="DI" >
<CONSTANT value="ETL_BATCH_ID" datatype="VARCHAR" size="12" />
</FUNCTION_CALL>
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_batch_id" >
<DIExpression isString="true" expr="get_env('ETL_BATCH_ID')" >
<FUNCTION_CALL name="get_env"  type="DI" >
<CONSTANT value="ETL_BATCH_ID" datatype="VARCHAR" size="12" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$l_batch_id" >
<DIExpression isString="true" expr="'-'" >
<CONSTANT value="-" datatype="VARCHAR" size="1" />
</DIExpression>
</DIAssignmentStep>
</DIElse>
</DIIfStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(is_set_env('ETL_PROCESS_ID') = 1)" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="is_set_env"  type="DI" >
<CONSTANT value="ETL_PROCESS_ID" datatype="VARCHAR" size="14" />
</FUNCTION_CALL>
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_process_id" >
<DIExpression isString="true" expr="get_env('ETL_PROCESS_ID')" >
<FUNCTION_CALL name="get_env"  type="DI" >
<CONSTANT value="ETL_PROCESS_ID" datatype="VARCHAR" size="14" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$l_process_id" >
<DIExpression isString="true" expr="'-'" >
<CONSTANT value="-" datatype="VARCHAR" size="1" />
</DIExpression>
</DIAssignmentStep>
</DIElse>
</DIIfStep>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(get_env('ETL_TRACE_LEVEL') = 'ALL')" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="get_env"  type="DI" >
<CONSTANT value="ETL_TRACE_LEVEL" datatype="VARCHAR" size="15" />
</FUNCTION_CALL>
<CONSTANT value="ALL" datatype="VARCHAR" size="3" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="(is_set_env(workflow_name()) = 1)" >
<LOGICAL_OP op="EQ">
<FUNCTION_CALL name="is_set_env"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</FUNCTION_CALL>
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$l_stepdetail_id" >
<DIExpression isString="true" expr="get_env(workflow_name())" >
<FUNCTION_CALL name="get_env"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(((((((('\\[Batch:' || $l_batch_id) || '\\] \\[Proc:') || $l_process_id) || '\\] \\[Detail:') || $l_stepdetail_id) || '\\] ') || $p_MESSAGE))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="\[Batch:" datatype="VARCHAR" size="8" />
<VARIABLE_REFERENCE name="$l_batch_id" />
</CONCAT>
<CONSTANT value="\] \[Proc:" datatype="VARCHAR" size="10" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_process_id" />
</CONCAT>
<CONSTANT value="\] \[Detail:" datatype="VARCHAR" size="12" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_stepdetail_id" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<VARIABLE_REFERENCE name="$p_MESSAGE" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIIf>
<DIElse>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="print(((((('\\[Batch:' || $l_batch_id) || '\\] \\[Proc:') || $l_process_id) || '\\] ') || $p_MESSAGE))" >
<FUNCTION_CALL name="print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="\[Batch:" datatype="VARCHAR" size="8" />
<VARIABLE_REFERENCE name="$l_batch_id" />
</CONCAT>
<CONSTANT value="\] \[Proc:" datatype="VARCHAR" size="10" />
</CONCAT>
<VARIABLE_REFERENCE name="$l_process_id" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<VARIABLE_REFERENCE name="$p_MESSAGE" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIElse>
</DIIfStep>
</DIIf>
<DIElse>
</DIElse>
</DIIfStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="M_ICPS_GET_MAX_WF_PROCESS_ID" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="#this function returns the max process id for a given workflow&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;if ($P_BATCH_ID &gt; 0 )&#xD;&#xA;&#x9;begin&#xD;&#xA;&#x9;&#x9;$L_SQL = 'SELECT MAX (sd.MD_PROCESS_ID) FROM dwabc.JOB_STREAM_STEP_DETAIL_RT sd where sd.DETAIL_NAME = \''||$P_WF_NAME||'\' and sd.MD_PROCESS_ID in  (SELECT MD_PROCESS_ID FROM dwabc.JOB_STREAM_STEP_RT s WHERE s.MD_BATCH_ID='||$P_BATCH_ID ||' and s.JOB_NAME = \''||$P_JOB_NAME ||'\' )  ';&#xA;&#x9;&#x9;$L_LAST_ProcessID  = sql('DW_ABC_DS',$L_SQL);&#xD;&#xA;&#x9;end&#xD;&#xA;&#xD;&#xA;# RETURN VALUE&#xD;&#xA;return   $L_LAST_ProcessID;&#xD;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
<DIAttribute name="Description" value="this function takes last status per batch over WF"/>
<DIAttribute name="Parallelizable" value="no"/>
<DIAttribute name="isScriptValidationFunction" value="no"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$P_BATCH_ID" datatype="INT" >
</DIElement>
<DIElement paramType="IN" name="$P_WF_NAME" datatype="VARCHAR" size="50" >
</DIElement>
<DIElement paramType="IN" name="$P_JOB_NAME" datatype="VARCHAR" size="50" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$L_LAST_ProcessID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SQL" datatype="VARCHAR" size="600" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="VARCHAR" size="200" />
<DISteps>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($P_BATCH_ID &gt; 0)" >
<LOGICAL_OP op="GT">
<VARIABLE_REFERENCE name="$P_BATCH_ID" />
<CONSTANT value="0" datatype="INT" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$L_SQL" >
<DIExpression isString="true" expr="(((((('SELECT MAX (sd.MD_PROCESS_ID) FROM dwabc.JOB_STREAM_STEP_DETAIL_RT sd where sd.DETAIL_NAME = \'' || $P_WF_NAME) || '\' and sd.MD_PROCESS_ID in  (SELECT MD_PROCESS_ID FROM dwabc.JOB_STREAM_STEP_RT s WHERE s.MD_BATCH_ID=') || $P_BATCH_ID) || ' and s.JOB_NAME = \'') || $P_JOB_NAME) || '\' )  ')" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="SELECT MAX (sd.MD_PROCESS_ID) FROM dwabc.JOB_STREAM_STEP_DETAIL_RT sd where sd.DETAIL_NAME = '" datatype="VARCHAR" size="94" />
<VARIABLE_REFERENCE name="$P_WF_NAME" />
</CONCAT>
<CONSTANT value="' and sd.MD_PROCESS_ID in  (SELECT MD_PROCESS_ID FROM dwabc.JOB_STREAM_STEP_RT s WHERE s.MD_BATCH_ID=" datatype="VARCHAR" size="101" />
</CONCAT>
<VARIABLE_REFERENCE name="$P_BATCH_ID" />
</CONCAT>
<CONSTANT value=" and s.JOB_NAME = '" datatype="VARCHAR" size="19" />
</CONCAT>
<VARIABLE_REFERENCE name="$P_JOB_NAME" />
</CONCAT>
<CONSTANT value="' )  " datatype="VARCHAR" size="5" />
</CONCAT>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LAST_ProcessID" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', $L_SQL)" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<VARIABLE_REFERENCE name="$L_SQL" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
</DIIf>
</DIIfStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr="$L_LAST_ProcessID" >
<VARIABLE_REFERENCE name="$L_LAST_ProcessID" />
</DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIScriptFunction name="M_ICPS_GET_WF_STATUS" typeId="11" >
<DIUIOptions>
<DIAttribute name="ui_script_text" value="#this function takes last status for run extract batch&#xD;&#xA;&#xD;&#xA;if ($P_MAX_PROCESS_ID is not null)&#xD;&#xA;begin&#xA;&#x9;$L_SQL = 'select status from dwabc.JOB_STREAM_STEP_DETAIL_RT where MD_PROCESS_ID = {$P_MAX_PROCESS_ID} and  DETAIL_NAME = {$L_WF_NAME}';&#xA;&#x9;$L_LAST_STATUS  = sql('DW_ABC_DS',$L_SQL);&#x9;&#xA;end&#xD;&#xA;else &#xD;&#xA;begin&#xA;&#x9;$L_LAST_STATUS=null;&#xA;end&#xD;&#xA;&#xD;&#xA;&#x9;&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;# return value&#xD;&#xA;return   $L_LAST_STATUS;&#xD;&#xA;"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="Acta_user_func_category" value="User_Script_Function"/>
<DIAttribute name="Description" value="this function takes last status per batch over WF"/>
<DIAttribute name="Parallelizable" value="no"/>
<DIAttribute name="isScriptValidationFunction" value="no"/>
</DIProperties>
<DIParameters><DIElement paramType="IN" name="$P_MAX_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="IN" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DIVariables><DIElement paramType="LOCAL" name="$L_LAST_STATUS" datatype="VARCHAR" size="100" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_SQL" datatype="VARCHAR" size="600" >
</DIElement>
</DIVariables>
<DIFunctionReturn datatype="VARCHAR" size="200" />
<DISteps>
<DIIfStep typeId="2" >
<DIExpression isString="true" expr="($P_MAX_PROCESS_ID IS NOT  NULL )" >
<LOGICAL_OP op="IS NOT NULL">
<VARIABLE_REFERENCE name="$P_MAX_PROCESS_ID" />
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DIAssignmentStep typeId="12" variable="$L_SQL" >
<DIExpression isString="true" expr="'select status from dwabc.JOB_STREAM_STEP_DETAIL_RT where MD_PROCESS_ID = {$P_MAX_PROCESS_ID} and  DETAIL_NAME = {$L_WF_NAME}'" >
<CONSTANT value="select status from dwabc.JOB_STREAM_STEP_DETAIL_RT where MD_PROCESS_ID = {$P_MAX_PROCESS_ID} and  DETAIL_NAME = {$L_WF_NAME}" datatype="VARCHAR" size="124" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LAST_STATUS" >
<DIExpression isString="true" expr="sql('DW_ABC_DS', $L_SQL)" >
<FUNCTION_CALL name="sql"  type="DI" >
<CONSTANT value="DW_ABC_DS" datatype="VARCHAR" size="9" />
<VARIABLE_REFERENCE name="$L_SQL" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
</DIIf>
<DIElse>
<DIAssignmentStep typeId="12" variable="$L_LAST_STATUS" >
<DIExpression isString="true" expr=" NULL " >
<CONSTANT_NULL /></DIExpression>
</DIAssignmentStep>
</DIElse>
</DIIfStep>
<DIReturnStep typeId="30" >
<DIExpression isString="true" expr="$L_LAST_STATUS" >
<VARIABLE_REFERENCE name="$L_LAST_STATUS" />
</DIExpression>
</DIReturnStep>
</DISteps>
</DIScriptFunction>
<DIJob name="ALT_TSNP_JB" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="ALT_TSNP_JB (version 0.13.0-SNAPSHOT)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Fri, 23 Jan 2009 10:49:09"/>
<DIAttribute name="Description" value="The transactional snapshot (ALT_TSNP) is a data layer that contains a version of the source data.  The data exists in the state the source was in at the beginning of the previous cycle of execution."/>
<DIAttribute name="Web_Service_Enabled" value="YES"/>
</DIProperties>
<DIVariables>
<DIElement paramType="GLOBAL" name="$G_DEBUG_MODE" datatype="INT" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_TRACE_MODE" datatype="INT" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_FLAG_DELETE" datatype="VARCHAR" size="6" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_FLAG_UPDATE" datatype="VARCHAR" size="6" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_FLAG_NEW" datatype="VARCHAR" size="6" >
</DIElement>
<DIElement paramType="GLOBAL" name="$G_MD_NON_PREFILL_FLAG" datatype="VARCHAR" size="1" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ui_display_name" value="ALT_TSNP_JB_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="STARTJB_SC is used to set global variables and initiates the metadata tracking for the Job"/>
<DIAttribute name="ui_display_name" value="STARTJB_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTJB_FN($G_PROCESS_ID, $G_DEBUG_MODE, $G_BATCH_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startjb_fn($G_PROCESS_ID, $G_DEBUG_MODE, $G_BATCH_ID)" >
<FUNCTION_CALL name="abc_startjb_fn"  type="DI" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_TSNP_CONTAINER_WF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="ENDJB_SC concludes the metadata for the Job and Adds final Entries into the ABC Tracking system"/>
<DIAttribute name="ui_display_name" value="ENDJB_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDJB_FN($G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endjb_fn($G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endjb_fn"  type="DI" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ui_display_name" value="ALT_TSNP_JB_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="ALT_TSNP_JB_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILJB_FN($G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failjb_fn($G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failjb_fn"  type="DI" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="job_GV_$G_FLAG_DELETE" value="'DEL'"/>
<DIAttribute name="job_GV_$G_FLAG_NEW" value="'NEW'"/>
<DIAttribute name="job_GV_$G_FLAG_UPDATE" value="'UPD'"/>
<DIAttribute name="job_GV_$G_MD_NON_PREFILL_FLAG" value="'D'"/>
<DIAttribute name="job_checkpoint_enabled" value="no"/>
<DIAttribute name="job_collect_statistics" value="no"/>
<DIAttribute name="job_collect_statistics_monitor" value="no"/>
<DIAttribute name="job_enable_assemblers" value="yes"/>
<DIAttribute name="job_enable_audit" value="yes"/>
<DIAttribute name="job_enable_dataquality" value="yes"/>
<DIAttribute name="job_export_repo" value="no"/>
<DIAttribute name="job_export_reports" value="no"/>
<DIAttribute name="job_isrecoverable" value="no"/>
<DIAttribute name="job_mode" value="Multi-Process"/>
<DIAttribute name="job_monitor_sample_rate" value="1000"/>
<DIAttribute name="job_name" value="ALT_TSNP_JB"/>
<DIAttribute name="job_print_version" value="no"/>
<DIAttribute name="job_testmode_enabled" value="no"/>
<DIAttribute name="job_trace_abapquery" value="no"/>
<DIAttribute name="job_trace_all" value="no"/>
<DIAttribute name="job_trace_ascomm" value="no"/>
<DIAttribute name="job_trace_assemblers" value="no"/>
<DIAttribute name="job_trace_audit" value="no"/>
<DIAttribute name="job_trace_dataflow" value="yes"/>
<DIAttribute name="job_trace_idoc_file" value="no"/>
<DIAttribute name="job_trace_memory_loader" value="no"/>
<DIAttribute name="job_trace_memory_reader" value="no"/>
<DIAttribute name="job_trace_optimized_dataflow" value="no"/>
<DIAttribute name="job_trace_parallel_execution" value="no"/>
<DIAttribute name="job_trace_rfc_function" value="no"/>
<DIAttribute name="job_trace_row" value="no"/>
<DIAttribute name="job_trace_script" value="no"/>
<DIAttribute name="job_trace_session" value="yes"/>
<DIAttribute name="job_trace_sql_only" value="no"/>
<DIAttribute name="job_trace_sqlfunctions" value="no"/>
<DIAttribute name="job_trace_sqlloaders" value="no"/>
<DIAttribute name="job_trace_sqlreaders" value="no"/>
<DIAttribute name="job_trace_sqltransforms" value="no"/>
<DIAttribute name="job_trace_stored_procedure" value="no"/>
<DIAttribute name="job_trace_table" value="no"/>
<DIAttribute name="job_trace_table_reader" value="no"/>
<DIAttribute name="job_trace_transform" value="no"/>
<DIAttribute name="job_trace_userfunction" value="no"/>
<DIAttribute name="job_trace_usertransform" value="no"/>
<DIAttribute name="job_trace_workflow" value="yes"/>
<DIAttribute name="job_type" value="batch"/>
<DIAttribute name="job_use_statistics" value="yes"/>
<DIAttribute name="locale_codepage" value="&lt;default&gt;"/>
<DIAttribute name="locale_language" value="&lt;default&gt;"/>
<DIAttribute name="locale_territory" value="&lt;default&gt;"/>
</DIAttributes>
</DIJob>
<DIWorkflow name="ALT_TSNP_CONTAINER_WF" typeId="2" >
<DIProperties>
<DIAttribute name="Description" value="Developer: John Monfort&#xA;Date: 5/15/2008&#xA;Description: This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables."/>
</DIProperties>
<DISteps>
<DIParallelStep typeId="11" >
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_TSNP_CUSTOM_CONT_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_TSNP_GEN_CONT_WF" >
</DICallStep>
</DISteps>
</DIParallelStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="ALT_TSNP_CUSTOM_CONT_WF" typeId="2" >
<DISteps>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="ALT_TSNP_GEN_CONT_WF" typeId="2" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="This workflow is a container for the entities concerned by the TSNP ETL Step"/>
</DIAnnotation></DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="ENTITY_LEVEL_CONTAINER_WF (version 0.13.0-SNAPSHOT)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Fri, 23 Jan 2009 10:49:09"/>
<DIAttribute name="Description" value="This workflow is a container for the entities concerned by the ALT TSNP ETL Step. It integrates the following entities:&#xD;&#xA;  - PERSON (version 1)&#xD;&#xA;"/>
</DIProperties>
<DISteps>
<DIParallelStep typeId="11" >
<DISteps>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_ACTUALCOST_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_ALT_BUSINESS_APPLICATION_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_ALTASSET_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_ALTCFGITEM_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_CONTRACT_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_COSTCENTER_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_ALTEMPLOYMENT_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_EXCHANGE_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_INTERACTION_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_ALTLOCATION_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_MODEL_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_ALTORG_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_ALTPERSON_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_ALTPLANNEDCOST_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_PROJECT_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_PROJECTTASK_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_REVENUE_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_CHANGE_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_INCIDENT_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_ALTPRJOBJECTIVE_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_ALTSERVICE_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_ALTSERVICESTATUS_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_ALTSLA_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_SLAOUTAGE_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_SLASTATUS_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_ALTSURVEY_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_ALTSURVEYSCORE_TSNP_WF" >
</DICallStep>
<DICallStep typeId="0"  calledObjectType="Workflow" name="ALT_ALTTIME_TO_MARKET_TSNP_WF" >
</DICallStep>
</DISteps>
</DIParallelStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="ALT_ACTUALCOST_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Wed, 23 Feb 2011 17:03:19"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_ACTUALCOST_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_ACTUALCOST_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ACTUALCOST_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_ACTUALCOST_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ACTUALCOST_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_ACTUALCOST_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_ACTUALCOST_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_ACTUALCOST_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Wed, 23 Feb 2011 17:03:19"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTUALCOST_DESCRIPTION" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Description"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ACTUALCOST_DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Application (APPLICATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.APPLICATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Application (APPLICATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.APPLICATION_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ASSET_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ASSET_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget (BUDGET)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.BUDGET_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget (BUDGET)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.BUDGET_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGETLINE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget Line (BUDGETLINE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.BUDGETLINE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGETLINE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget Line (BUDGETLINE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.BUDGETLINE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSSERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Business Service (BUSSERVICE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.BUSSERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSSERVICE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Business Service (BUSSERVICE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.BUSSERVICE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Contract (CONTRACT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CONTRACT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Contract (CONTRACT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CONTRACT_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COST_BASE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount in the Base currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COST_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="COST_LOC" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount in Local Currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COST_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCAT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Category (COSTCATEGORY)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COSTCAT_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Category (COSTCATEGORY)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COSTCATEGORY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Center (COSTCENTER)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COSTCENTER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Center (COSTCENTER)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COSTCENTER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CURRENCY_BASE" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="ISO code of the Base currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CURRENCY_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="CURRENCY_LOC" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="ISO code of the Local currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CURRENCY_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CUSTOMER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Customer (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CUSTOMER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CUSTOMER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Customer (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CUSTOMER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_INCURRED_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Actual Cost was paid out"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_INCURRED_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_INCURRED_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Actual Cost was paid out"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_INCURRED_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Discretionary Flag (DNFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DNFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Discretionary Flag (DNFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DNFLAG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_BASE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the DW Base Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.EXCH_BASE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_LOC_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Original Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.EXCH_LOC_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCHANGE_BASE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the DW Base Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.EXCHANGE_BASE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCHANGE_LOC_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Original Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.EXCHANGE_LOC_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXPENSE_STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Status of this item (pending approval, paid, etc)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.EXPENSE_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_CLOSED" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Is this expense line finalized?"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FLAG_CLOSED"/>
</DIAttributes>
</DIElement>
<DIElement name="ITFUNCTION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the IT Domain (ITFUNCTION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ITFUNCTION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ITFUNCTION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the IT Domain (ITFUNCTION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ITFUNCTION_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LOCATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LOCATION_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the OPEX/CAPEX Flag (OCFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OCFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the OPEX/CAPEX Flag (OCFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OCFLAG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Department or company (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Department or company (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ORG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Fiscal Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PERIOD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Person (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PERSON_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Person (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PERSON_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROGRAM_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Program (PROGRAM)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROGRAM_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROGRAM_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Program (PROGRAM)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROGRAM_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Project (PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROJECT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Project (PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROJECT_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="QUANTITY" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Relevant Quantity"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.QUANTITY"/>
</DIAttributes>
</DIElement>
<DIElement name="SCENARIO_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Scenario (SCENARIO)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SCENARIO_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SCENARIO_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Scenario (SCENARIO)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SCENARIO_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SUPPLIER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SUPPLIER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ACTUALCOST_DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ACTUALCOST_DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.APPLICATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="APPLICATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.APPLICATION_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="APPLICATION_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ASSET_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ASSET_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ASSET_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ASSET_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.BUDGET_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="BUDGET_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.BUDGET_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="BUDGET_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.BUDGETLINE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="BUDGETLINE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.BUDGETLINE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="BUDGETLINE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.BUSSERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="BUSSERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.BUSSERVICE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="BUSSERVICE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CONTRACT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CONTRACT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CONTRACT_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CONTRACT_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COST_BASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COST_BASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COST_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COST_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COSTCAT_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COSTCAT_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COSTCATEGORY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COSTCATEGORY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COSTCENTER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COSTCENTER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COSTCENTER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COSTCENTER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CURRENCY_BASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CURRENCY_BASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CURRENCY_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CURRENCY_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CUSTOMER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CUSTOMER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CUSTOMER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CUSTOMER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_INCURRED_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_INCURRED_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_INCURRED_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_INCURRED_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DNFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DNFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DNFLAG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DNFLAG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.EXCH_BASE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="EXCH_BASE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.EXCH_LOC_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="EXCH_LOC_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.EXCHANGE_BASE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="EXCHANGE_BASE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.EXCHANGE_LOC_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="EXCHANGE_LOC_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.EXPENSE_STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="EXPENSE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FLAG_CLOSED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FLAG_CLOSED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ITFUNCTION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ITFUNCTION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ITFUNCTION_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ITFUNCTION_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LOCATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LOCATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LOCATION_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LOCATION_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OCFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OCFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OCFLAG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OCFLAG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ORG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ORG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PERIOD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PERIOD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PERSON_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PERSON_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PERSON_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PERSON_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROGRAM_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROGRAM_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROGRAM_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROGRAM_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROJECT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROJECT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROJECT_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROJECT_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.QUANTITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="QUANTITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SCENARIO_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SCENARIO_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SCENARIO_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SCENARIO_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SUPPLIER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SUPPLIER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SUPPLIER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SUPPLIER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTUALCOST_DESCRIPTION" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Description"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ACTUALCOST_DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Application (APPLICATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.APPLICATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Application (APPLICATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.APPLICATION_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ASSET_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ASSET_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget (BUDGET)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BUDGET_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget (BUDGET)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BUDGET_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGETLINE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget Line (BUDGETLINE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BUDGETLINE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGETLINE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget Line (BUDGETLINE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BUDGETLINE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSSERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Business Service (BUSSERVICE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BUSSERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSSERVICE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Business Service (BUSSERVICE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BUSSERVICE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Contract (CONTRACT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CONTRACT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Contract (CONTRACT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CONTRACT_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COST_BASE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount in the Base currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COST_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="COST_LOC" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount in Local Currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COST_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCAT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Category (COSTCATEGORY)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COSTCAT_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Category (COSTCATEGORY)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COSTCATEGORY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Center (COSTCENTER)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COSTCENTER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Center (COSTCENTER)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COSTCENTER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CURRENCY_BASE" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="ISO code of the Base currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CURRENCY_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="CURRENCY_LOC" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="ISO code of the Local currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CURRENCY_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CUSTOMER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Customer (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CUSTOMER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CUSTOMER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Customer (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CUSTOMER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_INCURRED_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Actual Cost was paid out"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_INCURRED_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_INCURRED_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Actual Cost was paid out"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_INCURRED_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Discretionary Flag (DNFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DNFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Discretionary Flag (DNFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DNFLAG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_BASE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the DW Base Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.EXCH_BASE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_LOC_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Original Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.EXCH_LOC_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCHANGE_BASE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the DW Base Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.EXCHANGE_BASE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCHANGE_LOC_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Original Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.EXCHANGE_LOC_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXPENSE_STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Status of this item (pending approval, paid, etc)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.EXPENSE_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_CLOSED" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Is this expense line finalized?"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FLAG_CLOSED"/>
</DIAttributes>
</DIElement>
<DIElement name="ITFUNCTION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the IT Domain (ITFUNCTION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ITFUNCTION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ITFUNCTION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the IT Domain (ITFUNCTION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ITFUNCTION_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LOCATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LOCATION_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the OPEX/CAPEX Flag (OCFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OCFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the OPEX/CAPEX Flag (OCFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OCFLAG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Department or company (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Department or company (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ORG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Fiscal Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PERIOD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Person (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PERSON_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Person (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PERSON_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROGRAM_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Program (PROGRAM)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROGRAM_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROGRAM_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Program (PROGRAM)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROGRAM_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Project (PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROJECT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Project (PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROJECT_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="QUANTITY" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Relevant Quantity"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.QUANTITY"/>
</DIAttributes>
</DIElement>
<DIElement name="SCENARIO_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Scenario (SCENARIO)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SCENARIO_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SCENARIO_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Scenario (SCENARIO)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SCENARIO_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SUPPLIER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SUPPLIER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ACTUALCOST_DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ACTUALCOST_DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.APPLICATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="APPLICATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.APPLICATION_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="APPLICATION_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ASSET_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ASSET_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ASSET_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ASSET_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BUDGET_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BUDGET_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BUDGET_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BUDGET_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BUDGETLINE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BUDGETLINE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BUDGETLINE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BUDGETLINE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BUSSERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BUSSERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BUSSERVICE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BUSSERVICE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CONTRACT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CONTRACT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CONTRACT_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CONTRACT_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COST_BASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COST_BASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COST_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COST_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COSTCAT_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COSTCAT_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COSTCATEGORY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COSTCATEGORY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COSTCENTER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COSTCENTER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COSTCENTER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COSTCENTER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CURRENCY_BASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CURRENCY_BASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CURRENCY_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CURRENCY_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CUSTOMER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CUSTOMER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CUSTOMER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CUSTOMER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_INCURRED_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_INCURRED_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_INCURRED_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_INCURRED_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DNFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DNFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DNFLAG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DNFLAG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.EXCH_BASE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="EXCH_BASE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.EXCH_LOC_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="EXCH_LOC_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.EXCHANGE_BASE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="EXCHANGE_BASE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.EXCHANGE_LOC_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="EXCHANGE_LOC_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.EXPENSE_STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="EXPENSE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FLAG_CLOSED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FLAG_CLOSED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ITFUNCTION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ITFUNCTION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ITFUNCTION_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ITFUNCTION_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LOCATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LOCATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LOCATION_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LOCATION_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OCFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OCFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OCFLAG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OCFLAG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ORG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ORG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PERIOD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PERIOD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PERSON_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PERSON_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PERSON_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PERSON_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROGRAM_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROGRAM_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROGRAM_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROGRAM_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROJECT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROJECT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROJECT_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROJECT_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.QUANTITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="QUANTITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SCENARIO_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SCENARIO_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SCENARIO_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SCENARIO_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SUPPLIER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SUPPLIER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SUPPLIER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SUPPLIER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTUALCOST_DESCRIPTION" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Description"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ACTUALCOST_DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Application (APPLICATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.APPLICATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Application (APPLICATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.APPLICATION_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ASSET_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ASSET_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget (BUDGET)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BUDGET_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget (BUDGET)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BUDGET_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGETLINE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget Line (BUDGETLINE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BUDGETLINE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGETLINE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget Line (BUDGETLINE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BUDGETLINE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSSERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Business Service (BUSSERVICE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BUSSERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSSERVICE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Business Service (BUSSERVICE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BUSSERVICE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Contract (CONTRACT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CONTRACT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Contract (CONTRACT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CONTRACT_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COST_BASE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount in the Base currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COST_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="COST_LOC" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount in Local Currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COST_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCAT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Category (COSTCATEGORY)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COSTCAT_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Category (COSTCATEGORY)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COSTCATEGORY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Center (COSTCENTER)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COSTCENTER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Center (COSTCENTER)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COSTCENTER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CURRENCY_BASE" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="ISO code of the Base currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CURRENCY_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="CURRENCY_LOC" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="ISO code of the Local currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CURRENCY_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CUSTOMER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Customer (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CUSTOMER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CUSTOMER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Customer (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CUSTOMER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_INCURRED_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Actual Cost was paid out"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_INCURRED_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_INCURRED_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Actual Cost was paid out"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_INCURRED_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Discretionary Flag (DNFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DNFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Discretionary Flag (DNFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DNFLAG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_BASE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the DW Base Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.EXCH_BASE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_LOC_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Original Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.EXCH_LOC_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCHANGE_BASE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the DW Base Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.EXCHANGE_BASE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCHANGE_LOC_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Original Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.EXCHANGE_LOC_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXPENSE_STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Status of this item (pending approval, paid, etc)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.EXPENSE_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_CLOSED" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Is this expense line finalized?"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FLAG_CLOSED"/>
</DIAttributes>
</DIElement>
<DIElement name="ITFUNCTION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the IT Domain (ITFUNCTION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ITFUNCTION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ITFUNCTION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the IT Domain (ITFUNCTION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ITFUNCTION_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LOCATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LOCATION_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the OPEX/CAPEX Flag (OCFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OCFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the OPEX/CAPEX Flag (OCFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OCFLAG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Department or company (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Department or company (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ORG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Fiscal Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PERIOD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Person (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PERSON_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Person (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PERSON_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROGRAM_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Program (PROGRAM)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROGRAM_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROGRAM_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Program (PROGRAM)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROGRAM_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Project (PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROJECT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Project (PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROJECT_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="QUANTITY" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Relevant Quantity"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.QUANTITY"/>
</DIAttributes>
</DIElement>
<DIElement name="SCENARIO_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Scenario (SCENARIO)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SCENARIO_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SCENARIO_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Scenario (SCENARIO)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SCENARIO_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SUPPLIER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SUPPLIER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ACTUALCOST_DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ACTUALCOST_DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.APPLICATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="APPLICATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.APPLICATION_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="APPLICATION_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ASSET_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ASSET_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ASSET_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ASSET_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BUDGET_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BUDGET_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BUDGET_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BUDGET_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BUDGETLINE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BUDGETLINE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BUDGETLINE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BUDGETLINE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BUSSERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BUSSERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BUSSERVICE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BUSSERVICE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CONTRACT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CONTRACT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CONTRACT_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CONTRACT_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COST_BASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COST_BASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COST_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COST_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COSTCAT_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COSTCAT_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COSTCATEGORY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COSTCATEGORY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COSTCENTER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COSTCENTER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COSTCENTER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COSTCENTER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CURRENCY_BASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CURRENCY_BASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CURRENCY_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CURRENCY_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CUSTOMER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CUSTOMER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CUSTOMER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CUSTOMER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_INCURRED_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_INCURRED_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_INCURRED_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_INCURRED_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DNFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DNFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DNFLAG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DNFLAG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.EXCH_BASE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="EXCH_BASE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.EXCH_LOC_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="EXCH_LOC_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.EXCHANGE_BASE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="EXCHANGE_BASE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.EXCHANGE_LOC_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="EXCHANGE_LOC_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.EXPENSE_STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="EXPENSE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FLAG_CLOSED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FLAG_CLOSED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ITFUNCTION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ITFUNCTION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ITFUNCTION_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ITFUNCTION_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LOCATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LOCATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LOCATION_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LOCATION_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OCFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OCFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OCFLAG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OCFLAG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ORG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ORG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PERIOD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PERIOD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PERSON_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PERSON_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PERSON_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PERSON_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROGRAM_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROGRAM_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROGRAM_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROGRAM_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROJECT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROJECT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROJECT_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROJECT_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.QUANTITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="QUANTITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SCENARIO_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SCENARIO_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SCENARIO_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SCENARIO_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SUPPLIER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SUPPLIER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SUPPLIER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SUPPLIER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_ACTUALCOST_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_ACTUALCOST_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTUALCOST_DESCRIPTION" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Description"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.ACTUALCOST_DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Application (APPLICATION)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.APPLICATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Application (APPLICATION)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.APPLICATION_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.ASSET_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.ASSET_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget (BUDGET)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.BUDGET_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget (BUDGET)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.BUDGET_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGETLINE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget Line (BUDGETLINE)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.BUDGETLINE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGETLINE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget Line (BUDGETLINE)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.BUDGETLINE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSSERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Business Service (BUSSERVICE)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.BUSSERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSSERVICE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Business Service (BUSSERVICE)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.BUSSERVICE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Contract (CONTRACT)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.CONTRACT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Contract (CONTRACT)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.CONTRACT_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COST_BASE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount in the Base currency"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.COST_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="COST_LOC" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount in Local Currency"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.COST_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCAT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Category (COSTCATEGORY)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.COSTCAT_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Category (COSTCATEGORY)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.COSTCATEGORY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Center (COSTCENTER)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.COSTCENTER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Center (COSTCENTER)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.COSTCENTER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CURRENCY_BASE" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="ISO code of the Base currency"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.CURRENCY_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="CURRENCY_LOC" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="ISO code of the Local currency"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.CURRENCY_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CUSTOMER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Customer (ORG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.CUSTOMER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CUSTOMER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Customer (ORG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.CUSTOMER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_INCURRED_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Actual Cost was paid out"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.DATE_INCURRED_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_INCURRED_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Actual Cost was paid out"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.DATE_INCURRED_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Discretionary Flag (DNFLAG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.DNFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Discretionary Flag (DNFLAG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.DNFLAG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_BASE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the DW Base Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.EXCH_BASE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_LOC_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Original Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.EXCH_LOC_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCHANGE_BASE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the DW Base Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.EXCHANGE_BASE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCHANGE_LOC_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Original Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.EXCHANGE_LOC_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXPENSE_STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Status of this item (pending approval, paid, etc)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.EXPENSE_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_CLOSED" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Is this expense line finalized?"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.FLAG_CLOSED"/>
</DIAttributes>
</DIElement>
<DIElement name="ITFUNCTION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the IT Domain (ITFUNCTION)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.ITFUNCTION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ITFUNCTION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the IT Domain (ITFUNCTION)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.ITFUNCTION_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.LOCATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.LOCATION_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.MD_PF_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the OPEX/CAPEX Flag (OCFLAG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.OCFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the OPEX/CAPEX Flag (OCFLAG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.OCFLAG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Department or company (ORG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Department or company (ORG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.ORG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Fiscal Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.PERIOD_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Person (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.PERSON_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Person (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.PERSON_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROGRAM_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Program (PROGRAM)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.PROGRAM_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROGRAM_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Program (PROGRAM)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.PROGRAM_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Project (PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.PROJECT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Project (PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.PROJECT_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="QUANTITY" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Relevant Quantity"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.QUANTITY"/>
</DIAttributes>
</DIElement>
<DIElement name="SCENARIO_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Scenario (SCENARIO)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.SCENARIO_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SCENARIO_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Scenario (SCENARIO)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.SCENARIO_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.SUPPLIER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ACTUALCOST_EXT.SUPPLIER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.ACTUALCOST_DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="ACTUALCOST_DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.APPLICATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="APPLICATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.APPLICATION_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="APPLICATION_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.ASSET_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="ASSET_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.ASSET_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="ASSET_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.BUDGET_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="BUDGET_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.BUDGET_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="BUDGET_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.BUDGETLINE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="BUDGETLINE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.BUDGETLINE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="BUDGETLINE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.BUSSERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="BUSSERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.BUSSERVICE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="BUSSERVICE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.CONTRACT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="CONTRACT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.CONTRACT_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="CONTRACT_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.COST_BASE" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="COST_BASE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.COST_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="COST_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.COSTCAT_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="COSTCAT_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.COSTCATEGORY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="COSTCATEGORY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.COSTCENTER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="COSTCENTER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.COSTCENTER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="COSTCENTER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.CURRENCY_BASE" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="CURRENCY_BASE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.CURRENCY_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="CURRENCY_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.CUSTOMER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="CUSTOMER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.CUSTOMER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="CUSTOMER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.DATE_INCURRED_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="DATE_INCURRED_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.DATE_INCURRED_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="DATE_INCURRED_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.DNFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="DNFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.DNFLAG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="DNFLAG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.EXCH_BASE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="EXCH_BASE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.EXCH_LOC_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="EXCH_LOC_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.EXCHANGE_BASE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="EXCHANGE_BASE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.EXCHANGE_LOC_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="EXCHANGE_LOC_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.EXPENSE_STATUS" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="EXPENSE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.FLAG_CLOSED" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="FLAG_CLOSED" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.ITFUNCTION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="ITFUNCTION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.ITFUNCTION_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="ITFUNCTION_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.LOCATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="LOCATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.LOCATION_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="LOCATION_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.OCFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="OCFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.OCFLAG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="OCFLAG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.ORG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="ORG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.PERIOD_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="PERIOD_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.PERSON_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="PERSON_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.PERSON_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="PERSON_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.PROGRAM_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="PROGRAM_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.PROGRAM_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="PROGRAM_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.PROJECT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="PROJECT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.PROJECT_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="PROJECT_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.QUANTITY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="QUANTITY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.SCENARIO_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="SCENARIO_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.SCENARIO_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="SCENARIO_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.SUPPLIER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="SUPPLIER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ACTUALCOST_EXT.SUPPLIER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="SUPPLIER_ENTERPRISE_KEY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_ACTUALCOST_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_ACTUALCOST_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_ACTUALCOST_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ACTUALCOST_TSNP" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ACTUALCOST_EXT" >
<DIOutputView name="ALT_ACTUALCOST_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_ALT_BUSINESS_APPLICATION_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_ALT_BUSINESS_APPLICATION_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_MAX_WF_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_ALT_BUSINESS_APPLICATION_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALT_BUSINESS_APPLICATION_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="&#xD;&#xA;#WORKFLOW NAME&#xD;&#xA;$L_WF_NAME = workflow_name();&#xD;&#xA;&#xD;&#xA;# GET MAX PROCESS_ID OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID&#xD;&#xA;$L_MAX_WF_PROCESS_ID=M_ICPS_GET_MAX_WF_PROCESS_ID($G_BATCH_ID,$L_WF_NAME,job_name( ));&#xD;&#xA;&#xD;&#xA;# GET LAST EXECUTION STATUS OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID, ACCORDING TO MAX PROCESS_ID&#xD;&#xA;$L_LATEST_WF_STATUS =M_ICPS_GET_WF_STATUS($L_MAX_WF_PROCESS_ID,$L_WF_NAME );&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_WF_NAME" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_MAX_WF_PROCESS_ID" >
<DIExpression isString="true" expr="m_icps_get_max_wf_process_id($G_BATCH_ID, $L_WF_NAME, job_name())" >
<FUNCTION_CALL name="m_icps_get_max_wf_process_id"  type="DI" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
<FUNCTION_CALL name="job_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LATEST_WF_STATUS" >
<DIExpression isString="true" expr="m_icps_get_wf_status($L_MAX_WF_PROCESS_ID, $L_WF_NAME)" >
<FUNCTION_CALL name="m_icps_get_wf_status"  type="DI" >
<VARIABLE_REFERENCE name="$L_MAX_WF_PROCESS_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DIIfStep typeId="2" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="If_condition" value=" $L_LATEST_WF_STATUS&lt;&gt;'SUCCESS'  or $L_LATEST_WF_STATUS is null"/>
<DIAttribute name="ui_display_name" value="ALT_ALT_BUSINESS_APPLICATION_TSNP_CONDITION"/>
</DIUIOptions>
<DIExpression isString="true" expr="(($L_LATEST_WF_STATUS != 'SUCCESS') OR&#xA;   ($L_LATEST_WF_STATUS IS  NULL ))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_ALT_BUSINESS_APPLICATION_TSNP_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_LATEST_WF_STATUS" >
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</DIExpression>
</DIParameterValues>
</DICallStep>
</DIIf>
<DIElse>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Print"/>
<DIAttribute name="ui_script_text" value="ETL_PRINT('PREVIOS RUN OF WORKFLOW &gt;&gt; '||$L_WF_NAME||' FOR BATCH ID &gt;&gt; '||$G_BATCH_ID||' HAS FINISHED SUCCESSFULLY!');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('PREVIOS RUN OF WORKFLOW &gt;&gt; ' || $L_WF_NAME) || ' FOR BATCH ID &gt;&gt; ') || $G_BATCH_ID) || ' HAS FINISHED SUCCESSFULLY!'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="PREVIOS RUN OF WORKFLOW &gt;&gt; " datatype="VARCHAR" size="27" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</CONCAT>
<CONSTANT value=" FOR BATCH ID &gt;&gt; " datatype="VARCHAR" size="17" />
</CONCAT>
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</CONCAT>
<CONSTANT value=" HAS FINISHED SUCCESSFULLY!" datatype="VARCHAR" size="27" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DIElse>
</DIIfStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALT_BUSINESS_APPLICATION_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_ALT_BUSINESS_APPLICATION_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_ALT_BUSINESS_APPLICATION_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_ALT_BUSINESS_APPLICATION_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MONITORED_BY" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MONITORED_BY"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="DISPLAY_LABEL" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DISPLAY_LABEL"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_NAME" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.APPLICATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_CREATED" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_CREATED"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_MODIFIED" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_MODIFIED"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSINESS_CRITICALITY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.BUSINESS_CRITICALITY"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_TAGS" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.APPLICATION_TAGS"/>
</DIAttributes>
</DIElement>
<DIElement name="TIMEZONE" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.TIMEZONE"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_NAME_ALT" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.APPLICATION_NAME_ALT"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MONITORED_BY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MONITORED_BY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DISPLAY_LABEL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DISPLAY_LABEL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.APPLICATION_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="APPLICATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_CREATED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_CREATED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_MODIFIED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_MODIFIED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.BUSINESS_CRITICALITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="BUSINESS_CRITICALITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.APPLICATION_TAGS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="APPLICATION_TAGS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.TIMEZONE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="TIMEZONE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.APPLICATION_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="APPLICATION_NAME_ALT" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MONITORED_BY" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MONITORED_BY"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="DISPLAY_LABEL" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DISPLAY_LABEL"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_NAME" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.APPLICATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_CREATED" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_CREATED"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_MODIFIED" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_MODIFIED"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSINESS_CRITICALITY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BUSINESS_CRITICALITY"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_TAGS" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.APPLICATION_TAGS"/>
</DIAttributes>
</DIElement>
<DIElement name="TIMEZONE" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.TIMEZONE"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_NAME_ALT" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.APPLICATION_NAME_ALT"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MONITORED_BY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MONITORED_BY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DISPLAY_LABEL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DISPLAY_LABEL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.APPLICATION_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="APPLICATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_CREATED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_CREATED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_MODIFIED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_MODIFIED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BUSINESS_CRITICALITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BUSINESS_CRITICALITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.APPLICATION_TAGS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="APPLICATION_TAGS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.TIMEZONE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="TIMEZONE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.APPLICATION_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="APPLICATION_NAME_ALT" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MONITORED_BY" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MONITORED_BY"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="DISPLAY_LABEL" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DISPLAY_LABEL"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_NAME" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.APPLICATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_CREATED" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_CREATED"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_MODIFIED" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_MODIFIED"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSINESS_CRITICALITY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BUSINESS_CRITICALITY"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_TAGS" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.APPLICATION_TAGS"/>
</DIAttributes>
</DIElement>
<DIElement name="TIMEZONE" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.TIMEZONE"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_NAME_ALT" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.APPLICATION_NAME_ALT"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MONITORED_BY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MONITORED_BY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DISPLAY_LABEL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DISPLAY_LABEL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.APPLICATION_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="APPLICATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_CREATED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_CREATED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_MODIFIED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_MODIFIED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BUSINESS_CRITICALITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BUSINESS_CRITICALITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.APPLICATION_TAGS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="APPLICATION_TAGS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.TIMEZONE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="TIMEZONE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.APPLICATION_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="APPLICATION_NAME_ALT" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_ALT_BUSINESS_APPLICATION_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_ALT_BUSINESS_APPLICATION_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALT_BUSINESS_APPLICATION_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALT_BUSINESS_APPLICATION_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALT_BUSINESS_APPLICATION_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALT_BUSINESS_APPLICATION_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MONITORED_BY" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALT_BUSINESS_APPLICATION_EXT.MONITORED_BY"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALT_BUSINESS_APPLICATION_EXT.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="DISPLAY_LABEL" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALT_BUSINESS_APPLICATION_EXT.DISPLAY_LABEL"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_NAME" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALT_BUSINESS_APPLICATION_EXT.APPLICATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_CREATED" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALT_BUSINESS_APPLICATION_EXT.DATE_CREATED"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_MODIFIED" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALT_BUSINESS_APPLICATION_EXT.DATE_MODIFIED"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSINESS_CRITICALITY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALT_BUSINESS_APPLICATION_EXT.BUSINESS_CRITICALITY"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_TAGS" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALT_BUSINESS_APPLICATION_EXT.APPLICATION_TAGS"/>
</DIAttributes>
</DIElement>
<DIElement name="TIMEZONE" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALT_BUSINESS_APPLICATION_EXT.TIMEZONE"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_NAME_ALT" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALT_BUSINESS_APPLICATION_EXT.APPLICATION_NAME_ALT"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALT_BUSINESS_APPLICATION_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALT_BUSINESS_APPLICATION_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALT_BUSINESS_APPLICATION_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALT_BUSINESS_APPLICATION_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALT_BUSINESS_APPLICATION_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALT_BUSINESS_APPLICATION_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALT_BUSINESS_APPLICATION_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_ALT_BUSINESS_APPLICATION_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALT_BUSINESS_APPLICATION_EXT.MONITORED_BY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALT_BUSINESS_APPLICATION_EXT" column="MONITORED_BY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALT_BUSINESS_APPLICATION_EXT.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="ALT_ALT_BUSINESS_APPLICATION_EXT" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALT_BUSINESS_APPLICATION_EXT.DISPLAY_LABEL" >
<COLUMN_REFERENCE  qualifier1="ALT_ALT_BUSINESS_APPLICATION_EXT" column="DISPLAY_LABEL" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALT_BUSINESS_APPLICATION_EXT.APPLICATION_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_ALT_BUSINESS_APPLICATION_EXT" column="APPLICATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALT_BUSINESS_APPLICATION_EXT.DATE_CREATED" >
<COLUMN_REFERENCE  qualifier1="ALT_ALT_BUSINESS_APPLICATION_EXT" column="DATE_CREATED" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALT_BUSINESS_APPLICATION_EXT.DATE_MODIFIED" >
<COLUMN_REFERENCE  qualifier1="ALT_ALT_BUSINESS_APPLICATION_EXT" column="DATE_MODIFIED" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALT_BUSINESS_APPLICATION_EXT.BUSINESS_CRITICALITY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALT_BUSINESS_APPLICATION_EXT" column="BUSINESS_CRITICALITY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALT_BUSINESS_APPLICATION_EXT.APPLICATION_TAGS" >
<COLUMN_REFERENCE  qualifier1="ALT_ALT_BUSINESS_APPLICATION_EXT" column="APPLICATION_TAGS" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALT_BUSINESS_APPLICATION_EXT.TIMEZONE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALT_BUSINESS_APPLICATION_EXT" column="TIMEZONE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALT_BUSINESS_APPLICATION_EXT.APPLICATION_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="ALT_ALT_BUSINESS_APPLICATION_EXT" column="APPLICATION_NAME_ALT" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_ALT_BUSINESS_APPLICATION_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_ALT_BUSINESS_APPLICATION_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_ALT_BUSINESS_APPLICATION_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALT_BUSINESS_APPLICATION_EXT" >
<DIOutputView name="ALT_ALT_BUSINESS_APPLICATION_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALT_BUSINESS_APPLICATION_TSNP" >
<DIInputView name="CASE_LOAD_FIRST_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
        <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
          <auto_correct_using_merge>Yes</auto_correct_using_merge>
          <bulk_ldr_all_rows/>
          <bulk_ldr_max_errors/>
          <bulk_ldr_rows_per_commit/>
          <enable_partitioning>no</enable_partitioning>
          <ignore_column_case>yes</ignore_column_case>
          <ignore_columns_null>No</ignore_columns_null>
          <ignore_columns_value/>
          <loader_auto_correct>no</loader_auto_correct>
          <loader_bulk_load>0</loader_bulk_load>
          <loader_compare_column>compare_by_name</loader_compare_column>
          <loader_delete_map/>
          <loader_drop_and_create_table>no</loader_drop_and_create_table>
          <loader_insert_map/>
          <loader_load_choice>append</loader_load_choice>
          <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
          <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_ALT_BUSINESS_APPLICATION_TSNP.txt</loader_overflow_file>
          <loader_post_load1/>
          <loader_pre_load1/>
          <loader_quote_names>0</loader_quote_names>
          <loader_transactional>no</loader_transactional>
          <loader_transactional_order>0</loader_transactional_order>
          <loader_update_key_columns>no</loader_update_key_columns>
          <loader_update_map/>
          <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
          <loader_xact_size>1000</loader_xact_size>
          <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
          <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
          <overflow_file_format>Write data</overflow_file_format>
          <overriding_substitution_parameter_for_tablename/>
          <use_overflow_file>no</use_overflow_file>
          <use_unicode_varchar>no</use_unicode_varchar>
          <sql_text/>
        </LDRConfiguration>
      </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CASE_LOAD_FIRST_RUN" value="$P_LATEST_WF_STATUS IS NULL and ($G_DEBUG_MODE &lt;&gt;1 or $G_DEBUG_MODE IS NULL) and ($G_TRACE_MODE &lt;&gt;1 or $G_TRACE_MODE IS NULL)"/>
<DIAttribute name="CASE_LOAD_RE_RUN" value="DEFAULT"/>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="CASE_LOAD"/>
</DIUIOptions>
<DIInputView name="Merge" />
<DISchema name="CASE_LOAD" >
</DISchema>
<DICase>
<DISwitch label="FIRST_RUN" outputView="CASE_LOAD_FIRST_RUN" isDefault="false">
<DIExpression isString="true" expr="((($P_LATEST_WF_STATUS IS  NULL ) AND&#xA;   (  (($G_DEBUG_MODE != 1) OR&#xA;   ($G_DEBUG_MODE IS  NULL ))  )) AND&#xA;   (  (($G_TRACE_MODE != 1) OR&#xA;   ($G_TRACE_MODE IS  NULL ))  ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_LATEST_WF_STATUS" />
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="RE_RUN" outputView="CASE_LOAD_RE_RUN" isDefault="true">
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALT_BUSINESS_APPLICATION_TSNP" >
<DIInputView name="CASE_LOAD_RE_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
        <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
          <auto_correct_using_merge>Yes</auto_correct_using_merge>
          <bulk_ldr_all_rows/>
          <bulk_ldr_max_errors/>
          <bulk_ldr_rows_per_commit/>
          <enable_partitioning>no</enable_partitioning>
          <ignore_column_case>yes</ignore_column_case>
          <ignore_columns_null>no</ignore_columns_null>
          <ignore_columns_value/>
          <loader_auto_correct>yes</loader_auto_correct>
          <loader_bulk_load>0</loader_bulk_load>
          <loader_compare_column>compare_by_name</loader_compare_column>
          <loader_delete_map/>
          <loader_drop_and_create_table>no</loader_drop_and_create_table>
          <loader_insert_map/>
          <loader_load_choice>append</loader_load_choice>
          <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
          <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_ALT_BUSINESS_APPLICATION_TSNP.txt</loader_overflow_file>
          <loader_post_load1/>
          <loader_pre_load1/>
          <loader_quote_names>0</loader_quote_names>
          <loader_transactional>no</loader_transactional>
          <loader_transactional_order>0</loader_transactional_order>
          <loader_update_key_columns>no</loader_update_key_columns>
          <loader_update_map/>
          <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
          <loader_xact_size>1000</loader_xact_size>
          <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
          <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
          <overflow_file_format>Write data</overflow_file_format>
          <overriding_substitution_parameter_for_tablename/>
          <use_overflow_file>no</use_overflow_file>
          <use_unicode_varchar>no</use_unicode_varchar>
          <sql_text/>
        </LDRConfiguration>
      </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_ALTASSET_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_ALTASSET_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_MAX_WF_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_ALTASSET_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTASSET_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="&#xD;&#xA;#WORKFLOW NAME&#xD;&#xA;$L_WF_NAME = workflow_name();&#xD;&#xA;&#xD;&#xA;# GET MAX PROCESS_ID OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID&#xD;&#xA;$L_MAX_WF_PROCESS_ID=M_ICPS_GET_MAX_WF_PROCESS_ID($G_BATCH_ID,$L_WF_NAME,job_name( ));&#xD;&#xA;&#xD;&#xA;# GET LAST EXECUTION STATUS OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID, ACCORDING TO MAX PROCESS_ID&#xD;&#xA;$L_LATEST_WF_STATUS =M_ICPS_GET_WF_STATUS($L_MAX_WF_PROCESS_ID,$L_WF_NAME );&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_WF_NAME" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_MAX_WF_PROCESS_ID" >
<DIExpression isString="true" expr="m_icps_get_max_wf_process_id($G_BATCH_ID, $L_WF_NAME, job_name())" >
<FUNCTION_CALL name="m_icps_get_max_wf_process_id"  type="DI" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
<FUNCTION_CALL name="job_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LATEST_WF_STATUS" >
<DIExpression isString="true" expr="m_icps_get_wf_status($L_MAX_WF_PROCESS_ID, $L_WF_NAME)" >
<FUNCTION_CALL name="m_icps_get_wf_status"  type="DI" >
<VARIABLE_REFERENCE name="$L_MAX_WF_PROCESS_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DIIfStep typeId="2" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="If_condition" value=" $L_LATEST_WF_STATUS&lt;&gt;'SUCCESS'  or $L_LATEST_WF_STATUS is null"/>
<DIAttribute name="ui_display_name" value="ALT_ALTASSET_TSNP_CONDITION"/>
</DIUIOptions>
<DIExpression isString="true" expr="(($L_LATEST_WF_STATUS != 'SUCCESS') OR&#xA;   ($L_LATEST_WF_STATUS IS  NULL ))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_ALTASSET_TSNP_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_LATEST_WF_STATUS" >
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</DIExpression>
</DIParameterValues>
</DICallStep>
</DIIf>
<DIElse>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Print"/>
<DIAttribute name="ui_script_text" value="ETL_PRINT('PREVIOS RUN OF WORKFLOW &gt;&gt; '||$L_WF_NAME||' FOR BATCH ID &gt;&gt; '||$G_BATCH_ID||' HAS FINISHED SUCCESSFULLY!');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('PREVIOS RUN OF WORKFLOW &gt;&gt; ' || $L_WF_NAME) || ' FOR BATCH ID &gt;&gt; ') || $G_BATCH_ID) || ' HAS FINISHED SUCCESSFULLY!'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="PREVIOS RUN OF WORKFLOW &gt;&gt; " datatype="VARCHAR" size="27" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</CONCAT>
<CONSTANT value=" FOR BATCH ID &gt;&gt; " datatype="VARCHAR" size="17" />
</CONCAT>
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</CONCAT>
<CONSTANT value=" HAS FINISHED SUCCESSFULLY!" datatype="VARCHAR" size="27" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DIElse>
</DIIfStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTASSET_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_ALTASSET_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_ALTASSET_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_ALTASSET_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ASSET_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ASSET_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_STATUS" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ASSET_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_INSTALLED" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_INSTALLED"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RETIRED" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_RETIRED"/>
</DIAttributes>
</DIElement>
<DIElement name="MAINT_CONT_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MAINT_CONT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MODEL_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MODEL_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COSTCENTER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LOCATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ASSET_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_BUSINESS_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PARENT_BUSINESS_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ORG_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REQUEST" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_REQUEST"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_ORDER" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_ORDER"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_DELIVER" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_DELIVER"/>
</DIAttributes>
</DIElement>
<DIElement name="USER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.USER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="CI_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CI_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ASSET_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ASSET_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ASSET_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ASSET_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ASSET_STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ASSET_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_INSTALLED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_INSTALLED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_RETIRED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_RETIRED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MAINT_CONT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MAINT_CONT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MODEL_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MODEL_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COSTCENTER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COSTCENTER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LOCATION_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LOCATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ASSET_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ASSET_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PARENT_BUSINESS_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PARENT_BUSINESS_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ORG_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ORG_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_REQUEST" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_REQUEST" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_ORDER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_ORDER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_DELIVER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_DELIVER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.USER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="USER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CI_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CI_BUSINESS_KEY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ASSET_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ASSET_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_STATUS" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ASSET_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_INSTALLED" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_INSTALLED"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RETIRED" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_RETIRED"/>
</DIAttributes>
</DIElement>
<DIElement name="MAINT_CONT_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MAINT_CONT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MODEL_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MODEL_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COSTCENTER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LOCATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ASSET_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_BUSINESS_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PARENT_BUSINESS_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ORG_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REQUEST" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_REQUEST"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_ORDER" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_ORDER"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_DELIVER" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_DELIVER"/>
</DIAttributes>
</DIElement>
<DIElement name="USER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.USER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="CI_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CI_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ASSET_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ASSET_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ASSET_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ASSET_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ASSET_STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ASSET_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_INSTALLED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_INSTALLED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_RETIRED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_RETIRED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MAINT_CONT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MAINT_CONT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MODEL_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MODEL_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COSTCENTER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COSTCENTER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LOCATION_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LOCATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ASSET_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ASSET_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PARENT_BUSINESS_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PARENT_BUSINESS_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ORG_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ORG_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_REQUEST" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_REQUEST" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_ORDER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_ORDER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_DELIVER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_DELIVER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.USER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="USER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CI_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CI_BUSINESS_KEY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ASSET_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ASSET_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_STATUS" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ASSET_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_INSTALLED" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_INSTALLED"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RETIRED" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_RETIRED"/>
</DIAttributes>
</DIElement>
<DIElement name="MAINT_CONT_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MAINT_CONT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MODEL_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MODEL_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COSTCENTER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LOCATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ASSET_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_BUSINESS_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PARENT_BUSINESS_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ORG_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REQUEST" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_REQUEST"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_ORDER" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_ORDER"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_DELIVER" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_DELIVER"/>
</DIAttributes>
</DIElement>
<DIElement name="USER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.USER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="CI_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CI_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ASSET_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ASSET_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ASSET_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ASSET_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ASSET_STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ASSET_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_INSTALLED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_INSTALLED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_RETIRED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_RETIRED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MAINT_CONT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MAINT_CONT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MODEL_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MODEL_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COSTCENTER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COSTCENTER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LOCATION_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LOCATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ASSET_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ASSET_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PARENT_BUSINESS_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PARENT_BUSINESS_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ORG_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ORG_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_REQUEST" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_REQUEST" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_ORDER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_ORDER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_DELIVER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_DELIVER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.USER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="USER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CI_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CI_BUSINESS_KEY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_ALTASSET_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_ALTASSET_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="CI_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.CI_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.ASSET_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.ASSET_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_STATUS" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.ASSET_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_INSTALLED" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.DATE_INSTALLED"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RETIRED" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.DATE_RETIRED"/>
</DIAttributes>
</DIElement>
<DIElement name="MAINT_CONT_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.MAINT_CONT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MODEL_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.MODEL_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.COSTCENTER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.LOCATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSET_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.ASSET_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_BUSINESS_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.PARENT_BUSINESS_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.ORG_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_REQUEST" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.DATE_REQUEST"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_ORDER" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.DATE_ORDER"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_DELIVER" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.DATE_DELIVER"/>
</DIAttributes>
</DIElement>
<DIElement name="USER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTASSET_EXT.USER_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.CI_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="CI_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.ASSET_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="ASSET_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.ASSET_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="ASSET_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.ASSET_STATUS" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="ASSET_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.DATE_INSTALLED" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="DATE_INSTALLED" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.DATE_RETIRED" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="DATE_RETIRED" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.MAINT_CONT_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="MAINT_CONT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.MODEL_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="MODEL_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.COSTCENTER_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="COSTCENTER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.LOCATION_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="LOCATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.ASSET_TYPE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="ASSET_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.PARENT_BUSINESS_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="PARENT_BUSINESS_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.ORG_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="ORG_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.DATE_REQUEST" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="DATE_REQUEST" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.DATE_ORDER" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="DATE_ORDER" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.DATE_DELIVER" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="DATE_DELIVER" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTASSET_EXT.USER_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="USER_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_ALTASSET_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_ALTASSET_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_ALTASSET_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTASSET_EXT" >
<DIOutputView name="ALT_ALTASSET_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTASSET_TSNP" >
<DIInputView name="CASE_LOAD_FIRST_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>No</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_ALTASSET_TSNP.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CASE_LOAD_FIRST_RUN" value="$P_LATEST_WF_STATUS IS NULL and ($G_DEBUG_MODE &lt;&gt;1 or $G_DEBUG_MODE IS NULL) and ($G_TRACE_MODE &lt;&gt;1 or $G_TRACE_MODE IS NULL)"/>
<DIAttribute name="CASE_LOAD_RE_RUN" value="DEFAULT"/>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="CASE_LOAD"/>
</DIUIOptions>
<DIInputView name="Merge" />
<DISchema name="CASE_LOAD" >
</DISchema>
<DICase>
<DISwitch label="FIRST_RUN" outputView="CASE_LOAD_FIRST_RUN" isDefault="false">
<DIExpression isString="true" expr="((($P_LATEST_WF_STATUS IS  NULL ) AND&#xA;   (  (($G_DEBUG_MODE != 1) OR&#xA;   ($G_DEBUG_MODE IS  NULL ))  )) AND&#xA;   (  (($G_TRACE_MODE != 1) OR&#xA;   ($G_TRACE_MODE IS  NULL ))  ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_LATEST_WF_STATUS" />
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="RE_RUN" outputView="CASE_LOAD_RE_RUN" isDefault="true">
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTASSET_TSNP" >
<DIInputView name="CASE_LOAD_RE_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_ALTASSET_TSNP.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_ALTCFGITEM_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_ALTCFGITEM_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_MAX_WF_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIWorkflow name="ALT_CONTRACT_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 20 Jun 2011 12:24:50"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_CONTRACT_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_CONTRACT_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_CONTRACT_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_CONTRACT_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_CONTRACT_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_CONTRACT_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_CONTRACT_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_CONTRACT_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 20 Jun 2011 12:24:50"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CONTRACT_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract name"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CONTRACT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract name (alternate)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CONTRACT_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Cost Category (COSTCATEGORY)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COSTCATEGORY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Cost Center (COSTCENTER)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COSTCENTER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="End date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="End date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Start date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Start date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_ASSIGNABLE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Assignable flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FLAG_ASSIGNABLE"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_PURCHASE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Purchase flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FLAG_PURCHASE"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_RENEWAL" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Renewal flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FLAG_RENEWAL"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_RETURN" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Return flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FLAG_RETURN"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_UPGRADE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Upgrade flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FLAG_UPGRADE"/>
</DIAttributes>
</DIElement>
<DIElement name="LICENSE_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="License contract type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LICENSE_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the manager (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MANAGER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Parent Contract (CONTRACT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PARENT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PAYMENT_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Nature of payments"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PAYMENT_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIODICITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Frequency of payments"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PERIODICITY"/>
</DIAttributes>
</DIElement>
<DIElement name="PURCHASE_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Purchase option flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PURCHASE_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="RENEWAL_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Renewal option flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.RENEWAL_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="RETURN_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Return option flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.RETURN_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Status"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SUPPLIER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="UPGRADE_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Upgrade option flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.UPGRADE_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CONTRACT_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CONTRACT_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CONTRACT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CONTRACT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CONTRACT_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CONTRACT_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COSTCATEGORY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COSTCATEGORY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COSTCENTER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COSTCENTER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_END_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_END_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_START_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_START_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FLAG_ASSIGNABLE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FLAG_ASSIGNABLE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FLAG_PURCHASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FLAG_PURCHASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FLAG_RENEWAL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FLAG_RENEWAL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FLAG_RETURN" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FLAG_RETURN" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FLAG_UPGRADE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FLAG_UPGRADE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LICENSE_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LICENSE_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MANAGER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MANAGER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PARENT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PARENT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PAYMENT_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PAYMENT_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PERIODICITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PERIODICITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PURCHASE_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PURCHASE_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.RENEWAL_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="RENEWAL_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.RETURN_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="RETURN_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SUPPLIER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SUPPLIER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.UPGRADE_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="UPGRADE_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CONTRACT_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract name"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CONTRACT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract name (alternate)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CONTRACT_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Cost Category (COSTCATEGORY)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COSTCATEGORY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Cost Center (COSTCENTER)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COSTCENTER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="End date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="End date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Start date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Start date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_ASSIGNABLE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Assignable flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FLAG_ASSIGNABLE"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_PURCHASE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Purchase flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FLAG_PURCHASE"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_RENEWAL" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Renewal flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FLAG_RENEWAL"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_RETURN" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Return flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FLAG_RETURN"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_UPGRADE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Upgrade flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FLAG_UPGRADE"/>
</DIAttributes>
</DIElement>
<DIElement name="LICENSE_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="License contract type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LICENSE_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the manager (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MANAGER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Parent Contract (CONTRACT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PARENT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PAYMENT_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Nature of payments"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PAYMENT_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIODICITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Frequency of payments"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PERIODICITY"/>
</DIAttributes>
</DIElement>
<DIElement name="PURCHASE_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Purchase option flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PURCHASE_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="RENEWAL_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Renewal option flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.RENEWAL_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="RETURN_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Return option flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.RETURN_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Status"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SUPPLIER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="UPGRADE_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Upgrade option flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.UPGRADE_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CONTRACT_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CONTRACT_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CONTRACT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CONTRACT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CONTRACT_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CONTRACT_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COSTCATEGORY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COSTCATEGORY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COSTCENTER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COSTCENTER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_END_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_END_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_START_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_START_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FLAG_ASSIGNABLE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FLAG_ASSIGNABLE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FLAG_PURCHASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FLAG_PURCHASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FLAG_RENEWAL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FLAG_RENEWAL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FLAG_RETURN" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FLAG_RETURN" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FLAG_UPGRADE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FLAG_UPGRADE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LICENSE_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LICENSE_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MANAGER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MANAGER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PARENT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PARENT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PAYMENT_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PAYMENT_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PERIODICITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PERIODICITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PURCHASE_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PURCHASE_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.RENEWAL_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="RENEWAL_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.RETURN_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="RETURN_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SUPPLIER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SUPPLIER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.UPGRADE_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="UPGRADE_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CONTRACT_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract name"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CONTRACT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract name (alternate)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CONTRACT_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Cost Category (COSTCATEGORY)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COSTCATEGORY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Cost Center (COSTCENTER)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COSTCENTER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="End date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="End date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Start date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Start date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_ASSIGNABLE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Assignable flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FLAG_ASSIGNABLE"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_PURCHASE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Purchase flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FLAG_PURCHASE"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_RENEWAL" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Renewal flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FLAG_RENEWAL"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_RETURN" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Return flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FLAG_RETURN"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_UPGRADE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Upgrade flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FLAG_UPGRADE"/>
</DIAttributes>
</DIElement>
<DIElement name="LICENSE_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="License contract type"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LICENSE_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the manager (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MANAGER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Parent Contract (CONTRACT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PARENT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PAYMENT_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Nature of payments"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PAYMENT_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIODICITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Frequency of payments"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PERIODICITY"/>
</DIAttributes>
</DIElement>
<DIElement name="PURCHASE_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Purchase option flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PURCHASE_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="RENEWAL_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Renewal option flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.RENEWAL_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="RETURN_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Return option flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.RETURN_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Status"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SUPPLIER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="UPGRADE_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Upgrade option flag"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.UPGRADE_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CONTRACT_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CONTRACT_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CONTRACT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CONTRACT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CONTRACT_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CONTRACT_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COSTCATEGORY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COSTCATEGORY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COSTCENTER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COSTCENTER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_END_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_END_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_START_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_START_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FLAG_ASSIGNABLE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FLAG_ASSIGNABLE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FLAG_PURCHASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FLAG_PURCHASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FLAG_RENEWAL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FLAG_RENEWAL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FLAG_RETURN" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FLAG_RETURN" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FLAG_UPGRADE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FLAG_UPGRADE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LICENSE_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LICENSE_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MANAGER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MANAGER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PARENT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PARENT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PAYMENT_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PAYMENT_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PERIODICITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PERIODICITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PURCHASE_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PURCHASE_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.RENEWAL_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="RENEWAL_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.RETURN_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="RETURN_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SUPPLIER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SUPPLIER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.UPGRADE_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="UPGRADE_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_CONTRACT_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_CONTRACT_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract type"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.CONTRACT_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract name"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.CONTRACT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="CONTRACT_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Contract name (alternate)"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.CONTRACT_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Cost Category (COSTCATEGORY)"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.COSTCATEGORY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Cost Center (COSTCENTER)"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.COSTCENTER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="End date"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.DATE_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="End date"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.DATE_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Start date"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.DATE_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Start date"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.DATE_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_ASSIGNABLE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Assignable flag"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.FLAG_ASSIGNABLE"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_PURCHASE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Purchase flag"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.FLAG_PURCHASE"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_RENEWAL" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Renewal flag"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.FLAG_RENEWAL"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_RETURN" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Return flag"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.FLAG_RETURN"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_UPGRADE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Upgrade flag"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.FLAG_UPGRADE"/>
</DIAttributes>
</DIElement>
<DIElement name="LICENSE_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="License contract type"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.LICENSE_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the manager (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.MANAGER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.MD_PF_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Parent Contract (CONTRACT)"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.PARENT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PAYMENT_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Nature of payments"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.PAYMENT_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIODICITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Frequency of payments"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.PERIODICITY"/>
</DIAttributes>
</DIElement>
<DIElement name="PURCHASE_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Purchase option flag"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.PURCHASE_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="RENEWAL_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Renewal option flag"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.RENEWAL_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="RETURN_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Return option flag"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.RETURN_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Status"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.SUPPLIER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="UPGRADE_OPTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Upgrade option flag"/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.UPGRADE_OPTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_CONTRACT_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.CONTRACT_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="CONTRACT_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.CONTRACT_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="CONTRACT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.CONTRACT_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="CONTRACT_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.COSTCATEGORY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="COSTCATEGORY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.COSTCENTER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="COSTCENTER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.DATE_END_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="DATE_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.DATE_END_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="DATE_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.DATE_START_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="DATE_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.DATE_START_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="DATE_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.FLAG_ASSIGNABLE" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="FLAG_ASSIGNABLE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.FLAG_PURCHASE" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="FLAG_PURCHASE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.FLAG_RENEWAL" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="FLAG_RENEWAL" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.FLAG_RETURN" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="FLAG_RETURN" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.FLAG_UPGRADE" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="FLAG_UPGRADE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.LICENSE_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="LICENSE_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.MANAGER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="MANAGER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.PARENT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="PARENT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.PAYMENT_TYPE" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="PAYMENT_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.PERIODICITY" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="PERIODICITY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.PURCHASE_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="PURCHASE_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.RENEWAL_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="RENEWAL_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.RETURN_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="RETURN_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.STATUS" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="STATUS" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.SUPPLIER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="SUPPLIER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.UPGRADE_OPTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="UPGRADE_OPTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CONTRACT_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_CONTRACT_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_CONTRACT_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_CONTRACT_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_CONTRACT_TSNP" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_CONTRACT_EXT" >
<DIOutputView name="ALT_CONTRACT_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_COSTCENTER_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Thu, 26 May 2011 14:53:11"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_COSTCENTER_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_COSTCENTER_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_COSTCENTER_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_COSTCENTER_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_COSTCENTER_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_COSTCENTER_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_COSTCENTER_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_COSTCENTER_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Thu, 26 May 2011 14:53:11"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Display name of the Cost Center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COSTCENTER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Alternate display name of the Cost Center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COSTCENTER_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Cost Center becomes invalid"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Cost Center becomes invalid"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Cost Center becomes valid"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Cost Center becomes valid"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="GL_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="General Ledger Code"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.GL_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Cost Center manager"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MANAGER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Parent Cost Center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PARENT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COSTCENTER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COSTCENTER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COSTCENTER_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COSTCENTER_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_END_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_END_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_START_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_START_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.GL_CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="GL_CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MANAGER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MANAGER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PARENT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PARENT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Display name of the Cost Center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COSTCENTER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Alternate display name of the Cost Center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COSTCENTER_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Cost Center becomes invalid"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Cost Center becomes invalid"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Cost Center becomes valid"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Cost Center becomes valid"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="GL_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="General Ledger Code"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.GL_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Cost Center manager"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MANAGER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Parent Cost Center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PARENT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COSTCENTER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COSTCENTER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COSTCENTER_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COSTCENTER_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_END_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_END_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_START_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_START_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.GL_CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="GL_CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MANAGER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MANAGER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PARENT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PARENT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Display name of the Cost Center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COSTCENTER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Alternate display name of the Cost Center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COSTCENTER_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Cost Center becomes invalid"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Cost Center becomes invalid"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Cost Center becomes valid"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Cost Center becomes valid"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="GL_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="General Ledger Code"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.GL_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Cost Center manager"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MANAGER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Parent Cost Center"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PARENT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COSTCENTER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COSTCENTER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COSTCENTER_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COSTCENTER_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_END_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_END_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_START_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_START_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.GL_CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="GL_CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MANAGER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MANAGER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PARENT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PARENT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_COSTCENTER_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_COSTCENTER_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Display name of the Cost Center"/>
<DIAttribute name="ui_mapping_text" value="ALT_COSTCENTER_EXT.COSTCENTER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCENTER_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Alternate display name of the Cost Center"/>
<DIAttribute name="ui_mapping_text" value="ALT_COSTCENTER_EXT.COSTCENTER_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Cost Center becomes invalid"/>
<DIAttribute name="ui_mapping_text" value="ALT_COSTCENTER_EXT.DATE_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Cost Center becomes invalid"/>
<DIAttribute name="ui_mapping_text" value="ALT_COSTCENTER_EXT.DATE_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Cost Center becomes valid"/>
<DIAttribute name="ui_mapping_text" value="ALT_COSTCENTER_EXT.DATE_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Date the Cost Center becomes valid"/>
<DIAttribute name="ui_mapping_text" value="ALT_COSTCENTER_EXT.DATE_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="GL_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="General Ledger Code"/>
<DIAttribute name="ui_mapping_text" value="ALT_COSTCENTER_EXT.GL_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Cost Center manager"/>
<DIAttribute name="ui_mapping_text" value="ALT_COSTCENTER_EXT.MANAGER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_COSTCENTER_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_COSTCENTER_EXT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_COSTCENTER_EXT.MD_PF_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Parent Cost Center"/>
<DIAttribute name="ui_mapping_text" value="ALT_COSTCENTER_EXT.PARENT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_COSTCENTER_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_COSTCENTER_EXT.COSTCENTER_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_COSTCENTER_EXT" column="COSTCENTER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_COSTCENTER_EXT.COSTCENTER_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="ALT_COSTCENTER_EXT" column="COSTCENTER_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="ALT_COSTCENTER_EXT.DATE_END_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_COSTCENTER_EXT" column="DATE_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_COSTCENTER_EXT.DATE_END_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_COSTCENTER_EXT" column="DATE_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_COSTCENTER_EXT.DATE_START_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_COSTCENTER_EXT" column="DATE_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_COSTCENTER_EXT.DATE_START_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_COSTCENTER_EXT" column="DATE_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_COSTCENTER_EXT.GL_CODE" >
<COLUMN_REFERENCE  qualifier1="ALT_COSTCENTER_EXT" column="GL_CODE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_COSTCENTER_EXT.MANAGER_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_COSTCENTER_EXT" column="MANAGER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_COSTCENTER_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_COSTCENTER_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_COSTCENTER_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_COSTCENTER_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_COSTCENTER_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_COSTCENTER_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_COSTCENTER_EXT.PARENT_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_COSTCENTER_EXT" column="PARENT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_COSTCENTER_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_COSTCENTER_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_COSTCENTER_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_COSTCENTER_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_COSTCENTER_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_COSTCENTER_TSNP" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_COSTCENTER_EXT" >
<DIOutputView name="ALT_COSTCENTER_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_ALTEMPLOYMENT_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Thu, 7 Apr 2011 18:17:21"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_ALTEMPLOYMENT_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_ALTEMPLOYMENT_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTEMPLOYMENT_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_ALTEMPLOYMENT_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTEMPLOYMENT_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_ALTEMPLOYMENT_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_ALTEMPLOYMENT_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_ALTEMPLOYMENT_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Thu, 7 Apr 2011 18:17:21"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="EMPLOYEE_STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="EMPLOYEE_STATUS"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.EMPLOYEE_STATUS&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="EMPLOYEE_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="EMPLOYEE_TYPE"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.EMPLOYEE_TYPE&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="END_DATE"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.END_DATE&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="PERSON"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PERSON&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="START_DATE"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.START_DATE&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.EMPLOYEE_STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="EMPLOYEE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.EMPLOYEE_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="EMPLOYEE_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.END_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="END_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PERSON" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PERSON" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="EMPLOYEE_STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="EMPLOYEE_STATUS"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.EMPLOYEE_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="EMPLOYEE_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="EMPLOYEE_TYPE"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.EMPLOYEE_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="END_DATE"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.END_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="PERSON"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PERSON"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="START_DATE"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.EMPLOYEE_STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="EMPLOYEE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.EMPLOYEE_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="EMPLOYEE_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.END_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="END_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PERSON" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PERSON" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="EMPLOYEE_STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="EMPLOYEE_STATUS"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.EMPLOYEE_STATUS&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="EMPLOYEE_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="EMPLOYEE_TYPE"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.EMPLOYEE_TYPE&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="END_DATE"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.END_DATE&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="PERSON"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PERSON&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="START_DATE"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.START_DATE&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.EMPLOYEE_STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="EMPLOYEE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.EMPLOYEE_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="EMPLOYEE_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.END_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="END_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PERSON" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PERSON" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_ALTEMPLOYMENT_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_ALTEMPLOYMENT_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="EMPLOYEE_STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="EMPLOYEE_STATUS"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTEMPLOYMENT_EXT.EMPLOYEE_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="EMPLOYEE_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="EMPLOYEE_TYPE"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTEMPLOYMENT_EXT.EMPLOYEE_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="END_DATE"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTEMPLOYMENT_EXT.END_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTEMPLOYMENT_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTEMPLOYMENT_EXT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTEMPLOYMENT_EXT.MD_PF_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="PERSON"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTEMPLOYMENT_EXT.PERSON"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="START_DATE"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTEMPLOYMENT_EXT.START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTEMPLOYMENT_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTEMPLOYMENT_EXT.EMPLOYEE_STATUS" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTEMPLOYMENT_EXT" column="EMPLOYEE_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTEMPLOYMENT_EXT.EMPLOYEE_TYPE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTEMPLOYMENT_EXT" column="EMPLOYEE_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTEMPLOYMENT_EXT.END_DATE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTEMPLOYMENT_EXT" column="END_DATE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTEMPLOYMENT_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTEMPLOYMENT_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTEMPLOYMENT_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTEMPLOYMENT_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTEMPLOYMENT_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTEMPLOYMENT_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTEMPLOYMENT_EXT.PERSON" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTEMPLOYMENT_EXT" column="PERSON" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTEMPLOYMENT_EXT.START_DATE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTEMPLOYMENT_EXT" column="START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTEMPLOYMENT_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTEMPLOYMENT_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_ALTEMPLOYMENT_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_ALTEMPLOYMENT_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_ALTEMPLOYMENT_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTEMPLOYMENT_TSNP" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTEMPLOYMENT_EXT" >
<DIOutputView name="ALT_ALTEMPLOYMENT_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_EXCHANGE_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Sat, 6 Nov 2010 22:11:21"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_EXCHANGE_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_EXCHANGE_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_EXCHANGE_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_EXCHANGE_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_EXCHANGE_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_EXCHANGE_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_EXCHANGE_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_EXCHANGE_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Sat, 6 Nov 2010 22:11:21"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Start Date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.END_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCHANGE_RATE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Exchange Rate"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.EXCHANGE_RATE"/>
</DIAttributes>
</DIElement>
<DIElement name="IS_CURRENT" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Is Current"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.IS_CURRENT"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_CURRENCY" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="Source Currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SOURCE_CURRENCY"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Start Date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="TARGET_CURRENCY" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="Target Currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.TARGET_CURRENCY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.END_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="END_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.EXCHANGE_RATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="EXCHANGE_RATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.IS_CURRENT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="IS_CURRENT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SOURCE_CURRENCY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SOURCE_CURRENCY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.TARGET_CURRENCY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="TARGET_CURRENCY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Start Date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.END_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCHANGE_RATE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Exchange Rate"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.EXCHANGE_RATE"/>
</DIAttributes>
</DIElement>
<DIElement name="IS_CURRENT" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Is Current"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.IS_CURRENT"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_CURRENCY" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="Source Currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SOURCE_CURRENCY"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Start Date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="TARGET_CURRENCY" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="Target Currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.TARGET_CURRENCY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.END_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="END_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.EXCHANGE_RATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="EXCHANGE_RATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.IS_CURRENT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="IS_CURRENT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SOURCE_CURRENCY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SOURCE_CURRENCY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.TARGET_CURRENCY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="TARGET_CURRENCY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Start Date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.END_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCHANGE_RATE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Exchange Rate"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.EXCHANGE_RATE"/>
</DIAttributes>
</DIElement>
<DIElement name="IS_CURRENT" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Is Current"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.IS_CURRENT"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_CURRENCY" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="Source Currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SOURCE_CURRENCY"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Start Date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="TARGET_CURRENCY" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="Target Currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.TARGET_CURRENCY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.END_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="END_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.EXCHANGE_RATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="EXCHANGE_RATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.IS_CURRENT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="IS_CURRENT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SOURCE_CURRENCY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SOURCE_CURRENCY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.TARGET_CURRENCY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="TARGET_CURRENCY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_EXCHANGE_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_EXCHANGE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Start Date"/>
<DIAttribute name="ui_mapping_text" value="ALT_EXCHANGE_EXT.END_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCHANGE_RATE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Exchange Rate"/>
<DIAttribute name="ui_mapping_text" value="ALT_EXCHANGE_EXT.EXCHANGE_RATE"/>
</DIAttributes>
</DIElement>
<DIElement name="IS_CURRENT" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Is Current"/>
<DIAttribute name="ui_mapping_text" value="ALT_EXCHANGE_EXT.IS_CURRENT"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_EXCHANGE_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_EXCHANGE_EXT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_EXCHANGE_EXT.MD_PF_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="SOURCE_CURRENCY" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="Source Currency"/>
<DIAttribute name="ui_mapping_text" value="ALT_EXCHANGE_EXT.SOURCE_CURRENCY"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Start Date"/>
<DIAttribute name="ui_mapping_text" value="ALT_EXCHANGE_EXT.START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="TARGET_CURRENCY" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="Target Currency"/>
<DIAttribute name="ui_mapping_text" value="ALT_EXCHANGE_EXT.TARGET_CURRENCY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_EXCHANGE_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_EXCHANGE_EXT.END_DATE" >
<COLUMN_REFERENCE  qualifier1="ALT_EXCHANGE_EXT" column="END_DATE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_EXCHANGE_EXT.EXCHANGE_RATE" >
<COLUMN_REFERENCE  qualifier1="ALT_EXCHANGE_EXT" column="EXCHANGE_RATE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_EXCHANGE_EXT.IS_CURRENT" >
<COLUMN_REFERENCE  qualifier1="ALT_EXCHANGE_EXT" column="IS_CURRENT" />
</DIExpression>
<DIExpression isString="true" expr="ALT_EXCHANGE_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_EXCHANGE_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_EXCHANGE_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_EXCHANGE_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_EXCHANGE_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_EXCHANGE_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_EXCHANGE_EXT.SOURCE_CURRENCY" >
<COLUMN_REFERENCE  qualifier1="ALT_EXCHANGE_EXT" column="SOURCE_CURRENCY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_EXCHANGE_EXT.START_DATE" >
<COLUMN_REFERENCE  qualifier1="ALT_EXCHANGE_EXT" column="START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_EXCHANGE_EXT.TARGET_CURRENCY" >
<COLUMN_REFERENCE  qualifier1="ALT_EXCHANGE_EXT" column="TARGET_CURRENCY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_EXCHANGE_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_EXCHANGE_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_EXCHANGE_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_EXCHANGE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_EXCHANGE_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_EXCHANGE_TSNP" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_EXCHANGE_EXT" >
<DIOutputView name="ALT_EXCHANGE_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_INTERACTION_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_INTERACTION_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_MAX_WF_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_INTERACTION_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_INTERACTION_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="&#xD;&#xA;#WORKFLOW NAME&#xD;&#xA;$L_WF_NAME = workflow_name();&#xD;&#xA;&#xD;&#xA;# GET MAX PROCESS_ID OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID&#xD;&#xA;$L_MAX_WF_PROCESS_ID=M_ICPS_GET_MAX_WF_PROCESS_ID($G_BATCH_ID,$L_WF_NAME,job_name( ));&#xD;&#xA;&#xD;&#xA;# GET LAST EXECUTION STATUS OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID, ACCORDING TO MAX PROCESS_ID&#xD;&#xA;$L_LATEST_WF_STATUS =M_ICPS_GET_WF_STATUS($L_MAX_WF_PROCESS_ID,$L_WF_NAME );&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_WF_NAME" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_MAX_WF_PROCESS_ID" >
<DIExpression isString="true" expr="m_icps_get_max_wf_process_id($G_BATCH_ID, $L_WF_NAME, job_name())" >
<FUNCTION_CALL name="m_icps_get_max_wf_process_id"  type="DI" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
<FUNCTION_CALL name="job_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LATEST_WF_STATUS" >
<DIExpression isString="true" expr="m_icps_get_wf_status($L_MAX_WF_PROCESS_ID, $L_WF_NAME)" >
<FUNCTION_CALL name="m_icps_get_wf_status"  type="DI" >
<VARIABLE_REFERENCE name="$L_MAX_WF_PROCESS_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DIIfStep typeId="2" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="If_condition" value=" $L_LATEST_WF_STATUS&lt;&gt;'SUCCESS'  or $L_LATEST_WF_STATUS is null"/>
<DIAttribute name="ui_display_name" value="ALT_INTERACTION_TSNP_CONDITION"/>
</DIUIOptions>
<DIExpression isString="true" expr="(($L_LATEST_WF_STATUS != 'SUCCESS') OR&#xA;   ($L_LATEST_WF_STATUS IS  NULL ))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_INTERACTION_TSNP_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_LATEST_WF_STATUS" >
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</DIExpression>
</DIParameterValues>
</DICallStep>
</DIIf>
<DIElse>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Print"/>
<DIAttribute name="ui_script_text" value="ETL_PRINT('PREVIOS RUN OF WORKFLOW &gt;&gt; '||$L_WF_NAME||' FOR BATCH ID &gt;&gt; '||$G_BATCH_ID||' HAS FINISHED SUCCESSFULLY!');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('PREVIOS RUN OF WORKFLOW &gt;&gt; ' || $L_WF_NAME) || ' FOR BATCH ID &gt;&gt; ') || $G_BATCH_ID) || ' HAS FINISHED SUCCESSFULLY!'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="PREVIOS RUN OF WORKFLOW &gt;&gt; " datatype="VARCHAR" size="27" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</CONCAT>
<CONSTANT value=" FOR BATCH ID &gt;&gt; " datatype="VARCHAR" size="17" />
</CONCAT>
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</CONCAT>
<CONSTANT value=" HAS FINISHED SUCCESSFULLY!" datatype="VARCHAR" size="27" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DIElse>
</DIIfStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_INTERACTION_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_INTERACTION_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_INTERACTION_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_INTERACTION_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="INTERACTION_STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.INTERACTION_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="SUBCATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SUBCATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="INTERACTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.INTERACTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTIVE_PROCESS" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ACTIVE_PROCESS"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLETION_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COMPLETION_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="SURVEY_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SURVEY_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="FIRST_CALL" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FIRST_CALL"/>
</DIAttributes>
</DIElement>
<DIElement name="REFERENCE_NUMBER" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.REFERENCE_NUMBER"/>
</DIAttributes>
</DIElement>
<DIElement name="URGENCY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.URGENCY"/>
</DIAttributes>
</DIElement>
<DIElement name="CUSTOMER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CUSTOMER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SERVICE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PROVIDER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROVIDER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PRIORITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PRIORITY"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CLOSE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CLOSE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CREATE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CREATE_TIME_UTC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.INTERACTION_STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="INTERACTION_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SUBCATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SUBCATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.INTERACTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="INTERACTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ACTIVE_PROCESS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ACTIVE_PROCESS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COMPLETION_CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COMPLETION_CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SURVEY_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SURVEY_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FIRST_CALL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FIRST_CALL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.REFERENCE_NUMBER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="REFERENCE_NUMBER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.URGENCY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="URGENCY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CUSTOMER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CUSTOMER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SERVICE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROVIDER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROVIDER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PRIORITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PRIORITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CLOSE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CLOSE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CLOSE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CLOSE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CREATE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CREATE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CREATE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CREATE_TIME_UTC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="INTERACTION_STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.INTERACTION_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="SUBCATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SUBCATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="INTERACTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.INTERACTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTIVE_PROCESS" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ACTIVE_PROCESS"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLETION_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COMPLETION_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="SURVEY_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SURVEY_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="FIRST_CALL" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FIRST_CALL"/>
</DIAttributes>
</DIElement>
<DIElement name="REFERENCE_NUMBER" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.REFERENCE_NUMBER"/>
</DIAttributes>
</DIElement>
<DIElement name="URGENCY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.URGENCY"/>
</DIAttributes>
</DIElement>
<DIElement name="CUSTOMER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CUSTOMER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SERVICE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PROVIDER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROVIDER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PRIORITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PRIORITY"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CLOSE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CLOSE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CREATE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CREATE_TIME_UTC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.INTERACTION_STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="INTERACTION_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SUBCATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SUBCATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.INTERACTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="INTERACTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ACTIVE_PROCESS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ACTIVE_PROCESS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COMPLETION_CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COMPLETION_CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SURVEY_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SURVEY_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FIRST_CALL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FIRST_CALL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.REFERENCE_NUMBER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="REFERENCE_NUMBER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.URGENCY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="URGENCY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CUSTOMER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CUSTOMER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SERVICE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROVIDER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROVIDER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PRIORITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PRIORITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CLOSE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CLOSE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CLOSE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CLOSE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CREATE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CREATE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CREATE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CREATE_TIME_UTC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="INTERACTION_STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.INTERACTION_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="SUBCATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SUBCATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="INTERACTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.INTERACTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTIVE_PROCESS" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ACTIVE_PROCESS"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLETION_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COMPLETION_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="SURVEY_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SURVEY_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="FIRST_CALL" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FIRST_CALL"/>
</DIAttributes>
</DIElement>
<DIElement name="REFERENCE_NUMBER" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.REFERENCE_NUMBER"/>
</DIAttributes>
</DIElement>
<DIElement name="URGENCY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.URGENCY"/>
</DIAttributes>
</DIElement>
<DIElement name="CUSTOMER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CUSTOMER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SERVICE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PROVIDER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROVIDER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PRIORITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PRIORITY"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CLOSE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CLOSE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CREATE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CREATE_TIME_UTC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.INTERACTION_STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="INTERACTION_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SUBCATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SUBCATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.INTERACTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="INTERACTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ACTIVE_PROCESS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ACTIVE_PROCESS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COMPLETION_CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COMPLETION_CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SURVEY_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SURVEY_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FIRST_CALL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FIRST_CALL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.REFERENCE_NUMBER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="REFERENCE_NUMBER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.URGENCY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="URGENCY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CUSTOMER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CUSTOMER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SERVICE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROVIDER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROVIDER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PRIORITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PRIORITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CLOSE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CLOSE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CLOSE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CLOSE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CREATE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CREATE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CREATE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CREATE_TIME_UTC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_INTERACTION_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_INTERACTION_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="INTERACTION_STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.INTERACTION_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="SUBCATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.SUBCATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="INTERACTION_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.INTERACTION_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTIVE_PROCESS" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.ACTIVE_PROCESS"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.CLOSE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.CLOSE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLETION_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.COMPLETION_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="SURVEY_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.SURVEY_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="FIRST_CALL" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.FIRST_CALL"/>
</DIAttributes>
</DIElement>
<DIElement name="REFERENCE_NUMBER" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.REFERENCE_NUMBER"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.CREATE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.CREATE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="URGENCY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.URGENCY"/>
</DIAttributes>
</DIElement>
<DIElement name="CUSTOMER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.CUSTOMER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.SERVICE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PROVIDER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.PROVIDER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PRIORITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INTERACTION_EXT.PRIORITY"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.INTERACTION_STATUS" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="INTERACTION_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.SUBCATEGORY" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="SUBCATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.CATEGORY" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.INTERACTION_TYPE" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="INTERACTION_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.ACTIVE_PROCESS" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="ACTIVE_PROCESS" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.CLOSE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="CLOSE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.CLOSE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="CLOSE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.COMPLETION_CODE" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="COMPLETION_CODE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.SURVEY_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="SURVEY_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.FIRST_CALL" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="FIRST_CALL" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.REFERENCE_NUMBER" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="REFERENCE_NUMBER" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.CREATE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="CREATE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.CREATE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="CREATE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.URGENCY" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="URGENCY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.CUSTOMER_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="CUSTOMER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="SERVICE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.PROVIDER_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="PROVIDER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INTERACTION_EXT.PRIORITY" >
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="PRIORITY" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_INTERACTION_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_INTERACTION_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_INTERACTION_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_INTERACTION_EXT" >
<DIOutputView name="ALT_INTERACTION_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_INTERACTION_TSNP" >
<DIInputView name="CASE_LOAD_FIRST_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>No</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_INTERACTION_TSNP.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CASE_LOAD_FIRST_RUN" value="$P_LATEST_WF_STATUS IS NULL and ($G_DEBUG_MODE &lt;&gt;1 or $G_DEBUG_MODE IS NULL) and ($G_TRACE_MODE &lt;&gt;1 or $G_TRACE_MODE IS NULL)"/>
<DIAttribute name="CASE_LOAD_RE_RUN" value="DEFAULT"/>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="CASE_LOAD"/>
</DIUIOptions>
<DIInputView name="Merge" />
<DISchema name="CASE_LOAD" >
</DISchema>
<DICase>
<DISwitch label="FIRST_RUN" outputView="CASE_LOAD_FIRST_RUN" isDefault="false">
<DIExpression isString="true" expr="((($P_LATEST_WF_STATUS IS  NULL ) AND&#xA;   (  (($G_DEBUG_MODE != 1) OR&#xA;   ($G_DEBUG_MODE IS  NULL ))  )) AND&#xA;   (  (($G_TRACE_MODE != 1) OR&#xA;   ($G_TRACE_MODE IS  NULL ))  ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_LATEST_WF_STATUS" />
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="RE_RUN" outputView="CASE_LOAD_RE_RUN" isDefault="true">
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_INTERACTION_TSNP" >
<DIInputView name="CASE_LOAD_RE_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_INTERACTION_TSNP.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_ALTLOCATION_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_ALTLOCATION_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_MAX_WF_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_ALTLOCATION_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTLOCATION_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="&#xD;&#xA;#WORKFLOW NAME&#xD;&#xA;$L_WF_NAME = workflow_name();&#xD;&#xA;&#xD;&#xA;# GET MAX PROCESS_ID OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID&#xD;&#xA;$L_MAX_WF_PROCESS_ID=M_ICPS_GET_MAX_WF_PROCESS_ID($G_BATCH_ID,$L_WF_NAME,job_name( ));&#xD;&#xA;&#xD;&#xA;# GET LAST EXECUTION STATUS OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID, ACCORDING TO MAX PROCESS_ID&#xD;&#xA;$L_LATEST_WF_STATUS =M_ICPS_GET_WF_STATUS($L_MAX_WF_PROCESS_ID,$L_WF_NAME );&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_WF_NAME" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_MAX_WF_PROCESS_ID" >
<DIExpression isString="true" expr="m_icps_get_max_wf_process_id($G_BATCH_ID, $L_WF_NAME, job_name())" >
<FUNCTION_CALL name="m_icps_get_max_wf_process_id"  type="DI" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
<FUNCTION_CALL name="job_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LATEST_WF_STATUS" >
<DIExpression isString="true" expr="m_icps_get_wf_status($L_MAX_WF_PROCESS_ID, $L_WF_NAME)" >
<FUNCTION_CALL name="m_icps_get_wf_status"  type="DI" >
<VARIABLE_REFERENCE name="$L_MAX_WF_PROCESS_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DIIfStep typeId="2" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="If_condition" value=" $L_LATEST_WF_STATUS&lt;&gt;'SUCCESS'  or $L_LATEST_WF_STATUS is null"/>
<DIAttribute name="ui_display_name" value="ALT_ALTLOCATION_TSNP_CONDITION"/>
</DIUIOptions>
<DIExpression isString="true" expr="(($L_LATEST_WF_STATUS != 'SUCCESS') OR&#xA;   ($L_LATEST_WF_STATUS IS  NULL ))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_ALTLOCATION_TSNP_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_LATEST_WF_STATUS" >
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</DIExpression>
</DIParameterValues>
</DICallStep>
</DIIf>
<DIElse>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Print"/>
<DIAttribute name="ui_script_text" value="ETL_PRINT('PREVIOS RUN OF WORKFLOW &gt;&gt; '||$L_WF_NAME||' FOR BATCH ID &gt;&gt; '||$G_BATCH_ID||' HAS FINISHED SUCCESSFULLY!');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('PREVIOS RUN OF WORKFLOW &gt;&gt; ' || $L_WF_NAME) || ' FOR BATCH ID &gt;&gt; ') || $G_BATCH_ID) || ' HAS FINISHED SUCCESSFULLY!'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="PREVIOS RUN OF WORKFLOW &gt;&gt; " datatype="VARCHAR" size="27" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</CONCAT>
<CONSTANT value=" FOR BATCH ID &gt;&gt; " datatype="VARCHAR" size="17" />
</CONCAT>
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</CONCAT>
<CONSTANT value=" HAS FINISHED SUCCESSFULLY!" datatype="VARCHAR" size="27" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DIElse>
</DIIfStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTLOCATION_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_ALTLOCATION_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_ALTLOCATION_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_ALTLOCATION_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LOCATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LOCATION_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="STATE_PROVINCE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.STATE_PROVINCE"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_LOCATION_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PARENT_LOCATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="CITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CITY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LOCATION_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="SITE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SITE"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNTRY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COUNTRY"/>
</DIAttributes>
</DIElement>
<DIElement name="POSTAL_CODE" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.POSTAL_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="BUILDING" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.BUILDING"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LOCATION_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LOCATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LOCATION_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LOCATION_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.STATE_PROVINCE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="STATE_PROVINCE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PARENT_LOCATION_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PARENT_LOCATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LOCATION_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LOCATION_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SITE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SITE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COUNTRY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COUNTRY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.POSTAL_CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="POSTAL_CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.BUILDING" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="BUILDING" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LOCATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LOCATION_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="STATE_PROVINCE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.STATE_PROVINCE"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_LOCATION_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PARENT_LOCATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="CITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CITY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LOCATION_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="SITE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SITE"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNTRY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COUNTRY"/>
</DIAttributes>
</DIElement>
<DIElement name="POSTAL_CODE" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.POSTAL_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="BUILDING" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BUILDING"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LOCATION_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LOCATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LOCATION_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LOCATION_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.STATE_PROVINCE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="STATE_PROVINCE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PARENT_LOCATION_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PARENT_LOCATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LOCATION_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LOCATION_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SITE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SITE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COUNTRY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COUNTRY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.POSTAL_CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="POSTAL_CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BUILDING" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BUILDING" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LOCATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LOCATION_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="STATE_PROVINCE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.STATE_PROVINCE"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_LOCATION_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PARENT_LOCATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="CITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CITY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LOCATION_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="SITE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SITE"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNTRY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COUNTRY"/>
</DIAttributes>
</DIElement>
<DIElement name="POSTAL_CODE" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.POSTAL_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="BUILDING" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BUILDING"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LOCATION_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LOCATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LOCATION_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LOCATION_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.STATE_PROVINCE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="STATE_PROVINCE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PARENT_LOCATION_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PARENT_LOCATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LOCATION_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LOCATION_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SITE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SITE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COUNTRY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COUNTRY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.POSTAL_CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="POSTAL_CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BUILDING" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BUILDING" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_ALTLOCATION_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_ALTLOCATION_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTLOCATION_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTLOCATION_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTLOCATION_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTLOCATION_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTLOCATION_EXT.LOCATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTLOCATION_EXT.LOCATION_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="STATE_PROVINCE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTLOCATION_EXT.STATE_PROVINCE"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_LOCATION_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTLOCATION_EXT.PARENT_LOCATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="CITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTLOCATION_EXT.CITY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTLOCATION_EXT.LOCATION_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="SITE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTLOCATION_EXT.SITE"/>
</DIAttributes>
</DIElement>
<DIElement name="COUNTRY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTLOCATION_EXT.COUNTRY"/>
</DIAttributes>
</DIElement>
<DIElement name="POSTAL_CODE" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTLOCATION_EXT.POSTAL_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="BUILDING" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTLOCATION_EXT.BUILDING"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTLOCATION_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTLOCATION_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTLOCATION_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTLOCATION_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTLOCATION_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTLOCATION_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTLOCATION_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTLOCATION_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTLOCATION_EXT.LOCATION_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTLOCATION_EXT" column="LOCATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTLOCATION_EXT.LOCATION_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTLOCATION_EXT" column="LOCATION_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTLOCATION_EXT.STATE_PROVINCE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTLOCATION_EXT" column="STATE_PROVINCE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTLOCATION_EXT.PARENT_LOCATION_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTLOCATION_EXT" column="PARENT_LOCATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTLOCATION_EXT.CITY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTLOCATION_EXT" column="CITY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTLOCATION_EXT.LOCATION_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTLOCATION_EXT" column="LOCATION_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTLOCATION_EXT.SITE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTLOCATION_EXT" column="SITE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTLOCATION_EXT.COUNTRY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTLOCATION_EXT" column="COUNTRY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTLOCATION_EXT.POSTAL_CODE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTLOCATION_EXT" column="POSTAL_CODE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTLOCATION_EXT.BUILDING" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTLOCATION_EXT" column="BUILDING" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_ALTLOCATION_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_ALTLOCATION_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_ALTLOCATION_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTLOCATION_EXT" >
<DIOutputView name="ALT_ALTLOCATION_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTLOCATION_TSNP" >
<DIInputView name="CASE_LOAD_FIRST_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
        <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
          <auto_correct_using_merge>Yes</auto_correct_using_merge>
          <bulk_ldr_all_rows/>
          <bulk_ldr_max_errors/>
          <bulk_ldr_rows_per_commit/>
          <enable_partitioning>no</enable_partitioning>
          <ignore_column_case>yes</ignore_column_case>
          <ignore_columns_null>No</ignore_columns_null>
          <ignore_columns_value/>
          <loader_auto_correct>no</loader_auto_correct>
          <loader_bulk_load>0</loader_bulk_load>
          <loader_compare_column>compare_by_name</loader_compare_column>
          <loader_delete_map/>
          <loader_drop_and_create_table>no</loader_drop_and_create_table>
          <loader_insert_map/>
          <loader_load_choice>append</loader_load_choice>
          <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
          <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_ALTLOCATION_TSNP.txt</loader_overflow_file>
          <loader_post_load1/>
          <loader_pre_load1/>
          <loader_quote_names>0</loader_quote_names>
          <loader_transactional>no</loader_transactional>
          <loader_transactional_order>0</loader_transactional_order>
          <loader_update_key_columns>no</loader_update_key_columns>
          <loader_update_map/>
          <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
          <loader_xact_size>1000</loader_xact_size>
          <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
          <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
          <overflow_file_format>Write data</overflow_file_format>
          <overriding_substitution_parameter_for_tablename/>
          <use_overflow_file>no</use_overflow_file>
          <use_unicode_varchar>no</use_unicode_varchar>
          <sql_text/>
        </LDRConfiguration>
      </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CASE_LOAD_FIRST_RUN" value="$P_LATEST_WF_STATUS IS NULL and ($G_DEBUG_MODE &lt;&gt;1 or $G_DEBUG_MODE IS NULL) and ($G_TRACE_MODE &lt;&gt;1 or $G_TRACE_MODE IS NULL)"/>
<DIAttribute name="CASE_LOAD_RE_RUN" value="DEFAULT"/>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="CASE_LOAD"/>
</DIUIOptions>
<DIInputView name="Merge" />
<DISchema name="CASE_LOAD" >
</DISchema>
<DICase>
<DISwitch label="FIRST_RUN" outputView="CASE_LOAD_FIRST_RUN" isDefault="false">
<DIExpression isString="true" expr="((($P_LATEST_WF_STATUS IS  NULL ) AND&#xA;   (  (($G_DEBUG_MODE != 1) OR&#xA;   ($G_DEBUG_MODE IS  NULL ))  )) AND&#xA;   (  (($G_TRACE_MODE != 1) OR&#xA;   ($G_TRACE_MODE IS  NULL ))  ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_LATEST_WF_STATUS" />
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="RE_RUN" outputView="CASE_LOAD_RE_RUN" isDefault="true">
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTLOCATION_TSNP" >
<DIInputView name="CASE_LOAD_RE_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
        <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
          <auto_correct_using_merge>Yes</auto_correct_using_merge>
          <bulk_ldr_all_rows/>
          <bulk_ldr_max_errors/>
          <bulk_ldr_rows_per_commit/>
          <enable_partitioning>no</enable_partitioning>
          <ignore_column_case>yes</ignore_column_case>
          <ignore_columns_null>no</ignore_columns_null>
          <ignore_columns_value/>
          <loader_auto_correct>yes</loader_auto_correct>
          <loader_bulk_load>0</loader_bulk_load>
          <loader_compare_column>compare_by_name</loader_compare_column>
          <loader_delete_map/>
          <loader_drop_and_create_table>no</loader_drop_and_create_table>
          <loader_insert_map/>
          <loader_load_choice>append</loader_load_choice>
          <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
          <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_ALTLOCATION_TSNP.txt</loader_overflow_file>
          <loader_post_load1/>
          <loader_pre_load1/>
          <loader_quote_names>0</loader_quote_names>
          <loader_transactional>no</loader_transactional>
          <loader_transactional_order>0</loader_transactional_order>
          <loader_update_key_columns>no</loader_update_key_columns>
          <loader_update_map/>
          <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
          <loader_xact_size>1000</loader_xact_size>
          <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
          <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
          <overflow_file_format>Write data</overflow_file_format>
          <overriding_substitution_parameter_for_tablename/>
          <use_overflow_file>no</use_overflow_file>
          <use_unicode_varchar>no</use_unicode_varchar>
          <sql_text/>
        </LDRConfiguration>
      </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_MODEL_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Fri, 22 Apr 2011 11:04:42"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_MODEL_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_MODEL_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_MODEL_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_MODEL_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_MODEL_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_MODEL_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_MODEL_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_MODEL_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Fri, 22 Apr 2011 11:04:42"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MEMORY" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Amount of RAM in MB"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MEMORY"/>
</DIAttributes>
</DIElement>
<DIElement name="MODEL_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Display name for the Model"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MODEL_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MODEL_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Alternate Display Name for the Model"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MODEL_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="OS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Operating System"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OS"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="A further categorization of a change"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PARENT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PROCESSOR" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="CPU type and speed"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROCESSOR"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MEMORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MEMORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MODEL_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MODEL_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MODEL_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MODEL_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PARENT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PARENT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROCESSOR" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROCESSOR" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MEMORY" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Amount of RAM in MB"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MEMORY"/>
</DIAttributes>
</DIElement>
<DIElement name="MODEL_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Display name for the Model"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MODEL_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MODEL_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Alternate Display Name for the Model"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MODEL_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="OS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Operating System"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OS"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="A further categorization of a change"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PARENT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PROCESSOR" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="CPU type and speed"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROCESSOR"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MEMORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MEMORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MODEL_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MODEL_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MODEL_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MODEL_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PARENT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PARENT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROCESSOR" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROCESSOR" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MEMORY" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Amount of RAM in MB"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MEMORY"/>
</DIAttributes>
</DIElement>
<DIElement name="MODEL_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Display name for the Model"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MODEL_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MODEL_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Alternate Display Name for the Model"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MODEL_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="OS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Operating System"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OS"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="A further categorization of a change"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PARENT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PROCESSOR" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="CPU type and speed"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROCESSOR"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MEMORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MEMORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MODEL_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MODEL_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MODEL_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MODEL_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PARENT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PARENT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROCESSOR" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROCESSOR" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_MODEL_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_MODEL_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_MODEL_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_MODEL_EXT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_MODEL_EXT.MD_PF_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MEMORY" datatype="DECIMAL" precision="32" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Amount of RAM in MB"/>
<DIAttribute name="ui_mapping_text" value="ALT_MODEL_EXT.MEMORY"/>
</DIAttributes>
</DIElement>
<DIElement name="MODEL_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Display name for the Model"/>
<DIAttribute name="ui_mapping_text" value="ALT_MODEL_EXT.MODEL_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MODEL_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Alternate Display Name for the Model"/>
<DIAttribute name="ui_mapping_text" value="ALT_MODEL_EXT.MODEL_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="OS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Operating System"/>
<DIAttribute name="ui_mapping_text" value="ALT_MODEL_EXT.OS"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="A further categorization of a change"/>
<DIAttribute name="ui_mapping_text" value="ALT_MODEL_EXT.PARENT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PROCESSOR" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="CPU type and speed"/>
<DIAttribute name="ui_mapping_text" value="ALT_MODEL_EXT.PROCESSOR"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_MODEL_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_MODEL_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_MODEL_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_MODEL_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_MODEL_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_MODEL_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_MODEL_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_MODEL_EXT.MEMORY" >
<COLUMN_REFERENCE  qualifier1="ALT_MODEL_EXT" column="MEMORY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_MODEL_EXT.MODEL_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_MODEL_EXT" column="MODEL_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_MODEL_EXT.MODEL_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="ALT_MODEL_EXT" column="MODEL_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="ALT_MODEL_EXT.OS" >
<COLUMN_REFERENCE  qualifier1="ALT_MODEL_EXT" column="OS" />
</DIExpression>
<DIExpression isString="true" expr="ALT_MODEL_EXT.PARENT_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_MODEL_EXT" column="PARENT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_MODEL_EXT.PROCESSOR" >
<COLUMN_REFERENCE  qualifier1="ALT_MODEL_EXT" column="PROCESSOR" />
</DIExpression>
<DIExpression isString="true" expr="ALT_MODEL_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_MODEL_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_MODEL_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_MODEL_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_MODEL_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_MODEL_TSNP" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_MODEL_EXT" >
<DIOutputView name="ALT_MODEL_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_ALTORG_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_ALTORG_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_MAX_WF_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_ALTORG_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTORG_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="&#xD;&#xA;#WORKFLOW NAME&#xD;&#xA;$L_WF_NAME = workflow_name();&#xD;&#xA;&#xD;&#xA;# GET MAX PROCESS_ID OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID&#xD;&#xA;$L_MAX_WF_PROCESS_ID=M_ICPS_GET_MAX_WF_PROCESS_ID($G_BATCH_ID,$L_WF_NAME,job_name( ));&#xD;&#xA;&#xD;&#xA;# GET LAST EXECUTION STATUS OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID, ACCORDING TO MAX PROCESS_ID&#xD;&#xA;$L_LATEST_WF_STATUS =M_ICPS_GET_WF_STATUS($L_MAX_WF_PROCESS_ID,$L_WF_NAME );&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_WF_NAME" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_MAX_WF_PROCESS_ID" >
<DIExpression isString="true" expr="m_icps_get_max_wf_process_id($G_BATCH_ID, $L_WF_NAME, job_name())" >
<FUNCTION_CALL name="m_icps_get_max_wf_process_id"  type="DI" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
<FUNCTION_CALL name="job_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LATEST_WF_STATUS" >
<DIExpression isString="true" expr="m_icps_get_wf_status($L_MAX_WF_PROCESS_ID, $L_WF_NAME)" >
<FUNCTION_CALL name="m_icps_get_wf_status"  type="DI" >
<VARIABLE_REFERENCE name="$L_MAX_WF_PROCESS_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DIIfStep typeId="2" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="If_condition" value=" $L_LATEST_WF_STATUS&lt;&gt;'SUCCESS'  or $L_LATEST_WF_STATUS is null"/>
<DIAttribute name="ui_display_name" value="ALT_ALTORG_TSNP_CONDITION"/>
</DIUIOptions>
<DIExpression isString="true" expr="(($L_LATEST_WF_STATUS != 'SUCCESS') OR&#xA;   ($L_LATEST_WF_STATUS IS  NULL ))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_ALTORG_TSNP_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_LATEST_WF_STATUS" >
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</DIExpression>
</DIParameterValues>
</DICallStep>
</DIIf>
<DIElse>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Print"/>
<DIAttribute name="ui_script_text" value="ETL_PRINT('PREVIOS RUN OF WORKFLOW &gt;&gt; '||$L_WF_NAME||' FOR BATCH ID &gt;&gt; '||$G_BATCH_ID||' HAS FINISHED SUCCESSFULLY!');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('PREVIOS RUN OF WORKFLOW &gt;&gt; ' || $L_WF_NAME) || ' FOR BATCH ID &gt;&gt; ') || $G_BATCH_ID) || ' HAS FINISHED SUCCESSFULLY!'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="PREVIOS RUN OF WORKFLOW &gt;&gt; " datatype="VARCHAR" size="27" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</CONCAT>
<CONSTANT value=" FOR BATCH ID &gt;&gt; " datatype="VARCHAR" size="17" />
</CONCAT>
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</CONCAT>
<CONSTANT value=" HAS FINISHED SUCCESSFULLY!" datatype="VARCHAR" size="27" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DIElse>
</DIIfStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTORG_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_ALTORG_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_ALTORG_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_ALTORG_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_COMPANY" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FLAG_COMPANY"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_INTERNAL" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FLAG_INTERNAL"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MANAGER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ORG_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ORG_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_ORG_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PARENT_ORG_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FLAG_COMPANY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FLAG_COMPANY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FLAG_INTERNAL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FLAG_INTERNAL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MANAGER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MANAGER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ORG_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ORG_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ORG_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ORG_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PARENT_ORG_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PARENT_ORG_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_COMPANY" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FLAG_COMPANY"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_INTERNAL" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FLAG_INTERNAL"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MANAGER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ORG_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ORG_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_ORG_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PARENT_ORG_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FLAG_COMPANY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FLAG_COMPANY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FLAG_INTERNAL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FLAG_INTERNAL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MANAGER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MANAGER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ORG_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ORG_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ORG_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ORG_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PARENT_ORG_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PARENT_ORG_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_COMPANY" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FLAG_COMPANY"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_INTERNAL" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FLAG_INTERNAL"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MANAGER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ORG_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ORG_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_ORG_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PARENT_ORG_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FLAG_COMPANY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FLAG_COMPANY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FLAG_INTERNAL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FLAG_INTERNAL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MANAGER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MANAGER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ORG_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ORG_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ORG_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ORG_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PARENT_ORG_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PARENT_ORG_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_ALTORG_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_ALTORG_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTORG_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTORG_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTORG_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTORG_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_COMPANY" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTORG_EXT.FLAG_COMPANY"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_INTERNAL" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTORG_EXT.FLAG_INTERNAL"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTORG_EXT.MANAGER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTORG_EXT.ORG_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTORG_EXT.ORG_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_ORG_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTORG_EXT.PARENT_ORG_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTORG_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTORG_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTORG_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTORG_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTORG_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTORG_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTORG_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTORG_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTORG_EXT.FLAG_COMPANY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTORG_EXT" column="FLAG_COMPANY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTORG_EXT.FLAG_INTERNAL" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTORG_EXT" column="FLAG_INTERNAL" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTORG_EXT.MANAGER_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTORG_EXT" column="MANAGER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTORG_EXT.ORG_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTORG_EXT" column="ORG_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTORG_EXT.ORG_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTORG_EXT" column="ORG_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTORG_EXT.PARENT_ORG_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTORG_EXT" column="PARENT_ORG_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_ALTORG_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_ALTORG_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_ALTORG_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTORG_EXT" >
<DIOutputView name="ALT_ALTORG_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTORG_TSNP" >
<DIInputView name="CASE_LOAD_FIRST_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
        <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
          <auto_correct_using_merge>Yes</auto_correct_using_merge>
          <bulk_ldr_all_rows/>
          <bulk_ldr_max_errors/>
          <bulk_ldr_rows_per_commit/>
          <enable_partitioning>no</enable_partitioning>
          <ignore_column_case>yes</ignore_column_case>
          <ignore_columns_null>No</ignore_columns_null>
          <ignore_columns_value/>
          <loader_auto_correct>no</loader_auto_correct>
          <loader_bulk_load>0</loader_bulk_load>
          <loader_compare_column>compare_by_name</loader_compare_column>
          <loader_delete_map/>
          <loader_drop_and_create_table>no</loader_drop_and_create_table>
          <loader_insert_map/>
          <loader_load_choice>append</loader_load_choice>
          <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
          <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_ALTORG_TSNP.txt</loader_overflow_file>
          <loader_post_load1/>
          <loader_pre_load1/>
          <loader_quote_names>0</loader_quote_names>
          <loader_transactional>no</loader_transactional>
          <loader_transactional_order>0</loader_transactional_order>
          <loader_update_key_columns>no</loader_update_key_columns>
          <loader_update_map/>
          <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
          <loader_xact_size>1000</loader_xact_size>
          <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
          <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
          <overflow_file_format>Write data</overflow_file_format>
          <overriding_substitution_parameter_for_tablename/>
          <use_overflow_file>no</use_overflow_file>
          <use_unicode_varchar>no</use_unicode_varchar>
          <sql_text/>
        </LDRConfiguration>
      </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CASE_LOAD_FIRST_RUN" value="$P_LATEST_WF_STATUS IS NULL and ($G_DEBUG_MODE &lt;&gt;1 or $G_DEBUG_MODE IS NULL) and ($G_TRACE_MODE &lt;&gt;1 or $G_TRACE_MODE IS NULL)"/>
<DIAttribute name="CASE_LOAD_RE_RUN" value="DEFAULT"/>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="CASE_LOAD"/>
</DIUIOptions>
<DIInputView name="Merge" />
<DISchema name="CASE_LOAD" >
</DISchema>
<DICase>
<DISwitch label="FIRST_RUN" outputView="CASE_LOAD_FIRST_RUN" isDefault="false">
<DIExpression isString="true" expr="((($P_LATEST_WF_STATUS IS  NULL ) AND&#xA;   (  (($G_DEBUG_MODE != 1) OR&#xA;   ($G_DEBUG_MODE IS  NULL ))  )) AND&#xA;   (  (($G_TRACE_MODE != 1) OR&#xA;   ($G_TRACE_MODE IS  NULL ))  ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_LATEST_WF_STATUS" />
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="RE_RUN" outputView="CASE_LOAD_RE_RUN" isDefault="true">
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTORG_TSNP" >
<DIInputView name="CASE_LOAD_RE_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
        <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
          <auto_correct_using_merge>Yes</auto_correct_using_merge>
          <bulk_ldr_all_rows/>
          <bulk_ldr_max_errors/>
          <bulk_ldr_rows_per_commit/>
          <enable_partitioning>no</enable_partitioning>
          <ignore_column_case>yes</ignore_column_case>
          <ignore_columns_null>no</ignore_columns_null>
          <ignore_columns_value/>
          <loader_auto_correct>yes</loader_auto_correct>
          <loader_bulk_load>0</loader_bulk_load>
          <loader_compare_column>compare_by_name</loader_compare_column>
          <loader_delete_map/>
          <loader_drop_and_create_table>no</loader_drop_and_create_table>
          <loader_insert_map/>
          <loader_load_choice>append</loader_load_choice>
          <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
          <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_ALTORG_TSNP.txt</loader_overflow_file>
          <loader_post_load1/>
          <loader_pre_load1/>
          <loader_quote_names>0</loader_quote_names>
          <loader_transactional>no</loader_transactional>
          <loader_transactional_order>0</loader_transactional_order>
          <loader_update_key_columns>no</loader_update_key_columns>
          <loader_update_map/>
          <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
          <loader_xact_size>1000</loader_xact_size>
          <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
          <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
          <overflow_file_format>Write data</overflow_file_format>
          <overriding_substitution_parameter_for_tablename/>
          <use_overflow_file>no</use_overflow_file>
          <use_unicode_varchar>no</use_unicode_varchar>
          <sql_text/>
        </LDRConfiguration>
      </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_ALTPERSON_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Thu, 3 Mar 2011 20:28:34"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_ALTPERSON_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_ALTPERSON_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTPERSON_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_ALTPERSON_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTPERSON_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_ALTPERSON_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_ALTPERSON_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_ALTPERSON_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Thu, 3 Mar 2011 20:28:34"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="DATE_END"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_END"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="DATE_START"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_START"/>
</DIAttributes>
</DIElement>
<DIElement name="DEPT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="DEPT NAME"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DEPT"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="LOCATION"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LOCATION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="PARENT"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PARENT"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="PERSON_NAME"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PERSON_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="PERSON_NAME_ALT"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PERSON_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="PRIMARY_EMAIL" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value="EMAIL"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PRIMARY_EMAIL"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_END" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_END" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_START" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_START" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DEPT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DEPT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LOCATION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LOCATION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PARENT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PARENT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PERSON_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PERSON_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PERSON_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PERSON_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PRIMARY_EMAIL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PRIMARY_EMAIL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="DATE_END"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_END"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="DATE_START"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_START"/>
</DIAttributes>
</DIElement>
<DIElement name="DEPT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="DEPT NAME"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DEPT"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="LOCATION"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LOCATION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="PARENT"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PARENT"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="PERSON_NAME"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PERSON_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="PERSON_NAME_ALT"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PERSON_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="PRIMARY_EMAIL" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value="EMAIL"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PRIMARY_EMAIL"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_END" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_END" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_START" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_START" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DEPT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DEPT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LOCATION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LOCATION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PARENT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PARENT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PERSON_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PERSON_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PERSON_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PERSON_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PRIMARY_EMAIL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PRIMARY_EMAIL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="DATE_END"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_END"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="DATE_START"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_START"/>
</DIAttributes>
</DIElement>
<DIElement name="DEPT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="DEPT NAME"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DEPT"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="LOCATION"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LOCATION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="PARENT"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PARENT"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="PERSON_NAME"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PERSON_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="PERSON_NAME_ALT"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PERSON_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="PRIMARY_EMAIL" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value="EMAIL"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PRIMARY_EMAIL"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_END" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_END" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_START" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_START" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DEPT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DEPT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LOCATION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LOCATION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PARENT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PARENT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PERSON_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PERSON_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PERSON_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PERSON_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PRIMARY_EMAIL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PRIMARY_EMAIL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_ALTPERSON_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_ALTPERSON_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="DATE_END"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPERSON_EXT.DATE_END"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="DATE_START"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPERSON_EXT.DATE_START"/>
</DIAttributes>
</DIElement>
<DIElement name="DEPT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="DEPT NAME"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPERSON_EXT.DEPT"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="LOCATION"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPERSON_EXT.LOCATION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPERSON_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPERSON_EXT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPERSON_EXT.MD_PF_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="PARENT"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPERSON_EXT.PARENT"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="PERSON_NAME"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPERSON_EXT.PERSON_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="PERSON_NAME_ALT"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPERSON_EXT.PERSON_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="PRIMARY_EMAIL" datatype="VARCHAR" size="255" >
<DIAttributes>
<DIAttribute name="Description" value="EMAIL"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPERSON_EXT.PRIMARY_EMAIL"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPERSON_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPERSON_EXT.DATE_END" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPERSON_EXT" column="DATE_END" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPERSON_EXT.DATE_START" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPERSON_EXT" column="DATE_START" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPERSON_EXT.DEPT" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPERSON_EXT" column="DEPT" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPERSON_EXT.LOCATION" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPERSON_EXT" column="LOCATION" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPERSON_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPERSON_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPERSON_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPERSON_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPERSON_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPERSON_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPERSON_EXT.PARENT" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPERSON_EXT" column="PARENT" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPERSON_EXT.PERSON_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPERSON_EXT" column="PERSON_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPERSON_EXT.PERSON_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPERSON_EXT" column="PERSON_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPERSON_EXT.PRIMARY_EMAIL" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPERSON_EXT" column="PRIMARY_EMAIL" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPERSON_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPERSON_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_ALTPERSON_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_ALTPERSON_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_ALTPERSON_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTPERSON_TSNP" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTPERSON_EXT" >
<DIOutputView name="ALT_ALTPERSON_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_ALTPLANNEDCOST_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Wed, 23 Feb 2011 15:11:49"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_ALTPLANNEDCOST_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_ALTPLANNEDCOST_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTPLANNEDCOST_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_ALTPLANNEDCOST_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTPLANNEDCOST_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_ALTPLANNEDCOST_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_ALTPLANNEDCOST_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_ALTPLANNEDCOST_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Wed, 23 Feb 2011 15:11:49"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLIC_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Application (APPLICATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.APPLIC_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Application (APPLICATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.APPLICATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_BUSINESS_KEY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget (BUDGET)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.BUDGET_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget (BUDGET)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.BUDGET_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGETLINE_BUSINESS_KEY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget Line (BUDGETLINE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.BUDGETLINE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGETLINE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget Line (BUDGETLINE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.BUDGETLINE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSSERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Business Service (SERVICE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.BUSSERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSSERVICE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Business Service (SERVICE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.BUSSERVICE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COST_BASE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount in the Base currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COST_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="COST_LOC" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount in Local Currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COST_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCAT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Category (COSTCATEGORY)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COSTCAT_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Category (COSTCATEGORY)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COSTCATEGORY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CURRENCY_BASE" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="ISO code of the Base currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CURRENCY_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="CURRENCY_LOC" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="ISO code of the Local currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CURRENCY_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CUSTOMER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Customer (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CUSTOMER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CUSTOMER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Customer (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CUSTOMER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Discretionary Flag (DNFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DNFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Discretionary Flag (DNFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DNFLAG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_BASE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the DW Base Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.EXCH_BASE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_BASE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the DW Base Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.EXCH_BASE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_LOC_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Original Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.EXCH_LOC_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_LOC_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Original Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.EXCH_LOC_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ITFUNCTION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the IT Domain (ITFUNCTION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ITFUNCTION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ITFUNCTION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the IT Domain (ITFUNCTION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ITFUNCTION_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LOCATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_ENTEPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LOCATION_ENTEPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Manager (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MANAGER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Manager (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MANAGER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the OPEX/CAPEX Flag (OCFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OCFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the OPEX/CAPEX Flag (OCFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OCFLAG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Department or company (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Department or company (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ORG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Fiscal Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PERIOD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Fiscal Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PERIOD_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNEDCOST_DESCRIPTION" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Description"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PLANNEDCOST_DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="PROGRAM_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Program (PROGRAM)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROGRAM_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROGRAM_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Program (PROGRAM)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROGRAM_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Project (PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROJECT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Project (PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROJECT_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SCENARIO_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Scenario (SCENARIO)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SCENARIO_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SCENARIO_ENTEPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Scenario (SCENARIO)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SCENARIO_ENTEPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SUPPLIER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SUPPLIER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.APPLIC_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="APPLIC_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.APPLICATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="APPLICATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.BUDGET_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="BUDGET_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.BUDGET_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="BUDGET_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.BUDGETLINE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="BUDGETLINE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.BUDGETLINE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="BUDGETLINE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.BUSSERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="BUSSERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.BUSSERVICE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="BUSSERVICE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COST_BASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COST_BASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COST_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COST_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COSTCAT_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COSTCAT_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COSTCATEGORY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COSTCATEGORY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CURRENCY_BASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CURRENCY_BASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CURRENCY_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CURRENCY_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CUSTOMER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CUSTOMER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CUSTOMER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CUSTOMER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DNFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DNFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DNFLAG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DNFLAG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.EXCH_BASE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="EXCH_BASE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.EXCH_BASE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="EXCH_BASE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.EXCH_LOC_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="EXCH_LOC_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.EXCH_LOC_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="EXCH_LOC_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ITFUNCTION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ITFUNCTION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ITFUNCTION_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ITFUNCTION_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LOCATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LOCATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LOCATION_ENTEPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LOCATION_ENTEPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MANAGER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MANAGER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MANAGER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MANAGER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OCFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OCFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OCFLAG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OCFLAG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ORG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ORG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PERIOD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PERIOD_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PERIOD_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PLANNEDCOST_DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PLANNEDCOST_DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROGRAM_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROGRAM_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROGRAM_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROGRAM_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROJECT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROJECT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROJECT_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROJECT_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SCENARIO_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SCENARIO_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SCENARIO_ENTEPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SCENARIO_ENTEPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SUPPLIER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SUPPLIER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SUPPLIER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SUPPLIER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLIC_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Application (APPLICATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.APPLIC_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Application (APPLICATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.APPLICATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_BUSINESS_KEY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget (BUDGET)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BUDGET_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget (BUDGET)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BUDGET_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGETLINE_BUSINESS_KEY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget Line (BUDGETLINE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BUDGETLINE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGETLINE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget Line (BUDGETLINE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BUDGETLINE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSSERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Business Service (SERVICE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BUSSERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSSERVICE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Business Service (SERVICE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BUSSERVICE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COST_BASE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount in the Base currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COST_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="COST_LOC" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount in Local Currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COST_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCAT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Category (COSTCATEGORY)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COSTCAT_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Category (COSTCATEGORY)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COSTCATEGORY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CURRENCY_BASE" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="ISO code of the Base currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CURRENCY_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="CURRENCY_LOC" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="ISO code of the Local currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CURRENCY_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CUSTOMER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Customer (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CUSTOMER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CUSTOMER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Customer (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CUSTOMER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Discretionary Flag (DNFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DNFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Discretionary Flag (DNFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DNFLAG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_BASE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the DW Base Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.EXCH_BASE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_BASE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the DW Base Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.EXCH_BASE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_LOC_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Original Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.EXCH_LOC_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_LOC_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Original Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.EXCH_LOC_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ITFUNCTION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the IT Domain (ITFUNCTION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ITFUNCTION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ITFUNCTION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the IT Domain (ITFUNCTION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ITFUNCTION_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LOCATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_ENTEPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LOCATION_ENTEPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Manager (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MANAGER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Manager (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MANAGER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the OPEX/CAPEX Flag (OCFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OCFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the OPEX/CAPEX Flag (OCFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OCFLAG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Department or company (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Department or company (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ORG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Fiscal Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PERIOD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Fiscal Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PERIOD_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNEDCOST_DESCRIPTION" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Description"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PLANNEDCOST_DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="PROGRAM_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Program (PROGRAM)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROGRAM_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROGRAM_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Program (PROGRAM)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROGRAM_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Project (PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROJECT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Project (PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROJECT_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SCENARIO_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Scenario (SCENARIO)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SCENARIO_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SCENARIO_ENTEPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Scenario (SCENARIO)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SCENARIO_ENTEPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SUPPLIER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SUPPLIER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.APPLIC_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="APPLIC_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.APPLICATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="APPLICATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BUDGET_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BUDGET_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BUDGET_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BUDGET_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BUDGETLINE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BUDGETLINE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BUDGETLINE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BUDGETLINE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BUSSERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BUSSERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BUSSERVICE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BUSSERVICE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COST_BASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COST_BASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COST_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COST_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COSTCAT_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COSTCAT_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COSTCATEGORY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COSTCATEGORY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CURRENCY_BASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CURRENCY_BASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CURRENCY_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CURRENCY_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CUSTOMER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CUSTOMER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CUSTOMER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CUSTOMER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DNFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DNFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DNFLAG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DNFLAG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.EXCH_BASE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="EXCH_BASE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.EXCH_BASE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="EXCH_BASE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.EXCH_LOC_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="EXCH_LOC_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.EXCH_LOC_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="EXCH_LOC_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ITFUNCTION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ITFUNCTION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ITFUNCTION_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ITFUNCTION_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LOCATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LOCATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LOCATION_ENTEPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LOCATION_ENTEPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MANAGER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MANAGER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MANAGER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MANAGER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OCFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OCFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OCFLAG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OCFLAG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ORG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ORG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PERIOD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PERIOD_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PERIOD_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PLANNEDCOST_DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PLANNEDCOST_DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROGRAM_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROGRAM_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROGRAM_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROGRAM_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROJECT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROJECT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROJECT_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROJECT_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SCENARIO_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SCENARIO_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SCENARIO_ENTEPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SCENARIO_ENTEPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SUPPLIER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SUPPLIER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SUPPLIER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SUPPLIER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLIC_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Application (APPLICATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.APPLIC_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Application (APPLICATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.APPLICATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_BUSINESS_KEY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget (BUDGET)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BUDGET_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget (BUDGET)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BUDGET_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGETLINE_BUSINESS_KEY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget Line (BUDGETLINE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BUDGETLINE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGETLINE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget Line (BUDGETLINE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BUDGETLINE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSSERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Business Service (SERVICE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BUSSERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSSERVICE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Business Service (SERVICE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BUSSERVICE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COST_BASE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount in the Base currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COST_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="COST_LOC" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount in Local Currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COST_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCAT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Category (COSTCATEGORY)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COSTCAT_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Category (COSTCATEGORY)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COSTCATEGORY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CURRENCY_BASE" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="ISO code of the Base currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CURRENCY_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="CURRENCY_LOC" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="ISO code of the Local currency"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CURRENCY_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CUSTOMER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Customer (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CUSTOMER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CUSTOMER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Customer (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CUSTOMER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Discretionary Flag (DNFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DNFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Discretionary Flag (DNFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DNFLAG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_BASE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the DW Base Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.EXCH_BASE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_BASE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the DW Base Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.EXCH_BASE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_LOC_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Original Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.EXCH_LOC_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_LOC_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Original Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.EXCH_LOC_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ITFUNCTION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the IT Domain (ITFUNCTION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ITFUNCTION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ITFUNCTION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the IT Domain (ITFUNCTION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ITFUNCTION_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LOCATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_ENTEPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LOCATION_ENTEPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Manager (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MANAGER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Manager (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MANAGER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the OPEX/CAPEX Flag (OCFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OCFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the OPEX/CAPEX Flag (OCFLAG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OCFLAG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Department or company (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Department or company (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ORG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Fiscal Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PERIOD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Fiscal Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PERIOD_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNEDCOST_DESCRIPTION" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Description"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PLANNEDCOST_DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="PROGRAM_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Program (PROGRAM)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROGRAM_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROGRAM_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Program (PROGRAM)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROGRAM_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Project (PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROJECT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Project (PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROJECT_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SCENARIO_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Scenario (SCENARIO)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SCENARIO_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SCENARIO_ENTEPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Scenario (SCENARIO)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SCENARIO_ENTEPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SUPPLIER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SUPPLIER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.APPLIC_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="APPLIC_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.APPLICATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="APPLICATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BUDGET_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BUDGET_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BUDGET_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BUDGET_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BUDGETLINE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BUDGETLINE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BUDGETLINE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BUDGETLINE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BUSSERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BUSSERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BUSSERVICE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BUSSERVICE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COST_BASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COST_BASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COST_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COST_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COSTCAT_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COSTCAT_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COSTCATEGORY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COSTCATEGORY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CURRENCY_BASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CURRENCY_BASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CURRENCY_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CURRENCY_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CUSTOMER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CUSTOMER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CUSTOMER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CUSTOMER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DNFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DNFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DNFLAG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DNFLAG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.EXCH_BASE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="EXCH_BASE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.EXCH_BASE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="EXCH_BASE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.EXCH_LOC_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="EXCH_LOC_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.EXCH_LOC_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="EXCH_LOC_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ITFUNCTION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ITFUNCTION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ITFUNCTION_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ITFUNCTION_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LOCATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LOCATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LOCATION_ENTEPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LOCATION_ENTEPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MANAGER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MANAGER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MANAGER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MANAGER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OCFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OCFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OCFLAG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OCFLAG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ORG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ORG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PERIOD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PERIOD_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PERIOD_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PLANNEDCOST_DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PLANNEDCOST_DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROGRAM_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROGRAM_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROGRAM_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROGRAM_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROJECT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROJECT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROJECT_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROJECT_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SCENARIO_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SCENARIO_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SCENARIO_ENTEPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SCENARIO_ENTEPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SUPPLIER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SUPPLIER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SUPPLIER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SUPPLIER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_ALTPLANNEDCOST_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_ALTPLANNEDCOST_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLIC_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Application (APPLICATION)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.APPLIC_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="APPLICATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Application (APPLICATION)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.APPLICATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_BUSINESS_KEY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget (BUDGET)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.BUDGET_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGET_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget (BUDGET)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.BUDGET_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGETLINE_BUSINESS_KEY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget Line (BUDGETLINE)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.BUDGETLINE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUDGETLINE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Budget Line (BUDGETLINE)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.BUDGETLINE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSSERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Business Service (SERVICE)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.BUSSERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSSERVICE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Business Service (SERVICE)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.BUSSERVICE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COST_BASE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount in the Base currency"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.COST_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="COST_LOC" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount in Local Currency"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.COST_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCAT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Category (COSTCATEGORY)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.COSTCAT_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="COSTCATEGORY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Cost Category (COSTCATEGORY)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.COSTCATEGORY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CURRENCY_BASE" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="ISO code of the Base currency"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.CURRENCY_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="CURRENCY_LOC" datatype="VARCHAR" size="3" >
<DIAttributes>
<DIAttribute name="Description" value="ISO code of the Local currency"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.CURRENCY_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CUSTOMER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Customer (ORG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.CUSTOMER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CUSTOMER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Customer (ORG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.CUSTOMER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Discretionary Flag (DNFLAG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.DNFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="DNFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Discretionary Flag (DNFLAG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.DNFLAG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_BASE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the DW Base Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.EXCH_BASE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_BASE_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the DW Base Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.EXCH_BASE_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_LOC_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Original Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.EXCH_LOC_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="EXCH_LOC_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Original Exchange rate (EXCHANGE)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.EXCH_LOC_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ITFUNCTION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the IT Domain (ITFUNCTION)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.ITFUNCTION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ITFUNCTION_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the IT Domain (ITFUNCTION)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.ITFUNCTION_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.LOCATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_ENTEPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.LOCATION_ENTEPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Manager (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.MANAGER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Manager (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.MANAGER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.MD_PF_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the OPEX/CAPEX Flag (OCFLAG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.OCFLAG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OCFLAG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the OPEX/CAPEX Flag (OCFLAG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.OCFLAG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Department or company (ORG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Department or company (ORG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.ORG_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Fiscal Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.PERIOD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Fiscal Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.PERIOD_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNEDCOST_DESCRIPTION" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Description"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.PLANNEDCOST_DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="PROGRAM_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Program (PROGRAM)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.PROGRAM_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROGRAM_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Program (PROGRAM)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.PROGRAM_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Project (PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.PROJECT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Project (PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.PROJECT_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SCENARIO_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Scenario (SCENARIO)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.SCENARIO_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SCENARIO_ENTEPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Scenario (SCENARIO)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.SCENARIO_ENTEPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.SUPPLIER_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SUPPLIER_ENTERPRISE_KEY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Supplier (ORG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.SUPPLIER_ENTERPRISE_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTPLANNEDCOST_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.APPLIC_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="APPLIC_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.APPLICATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="APPLICATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.BUDGET_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="BUDGET_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.BUDGET_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="BUDGET_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.BUDGETLINE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="BUDGETLINE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.BUDGETLINE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="BUDGETLINE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.BUSSERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="BUSSERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.BUSSERVICE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="BUSSERVICE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.COST_BASE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="COST_BASE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.COST_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="COST_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.COSTCAT_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="COSTCAT_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.COSTCATEGORY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="COSTCATEGORY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.CURRENCY_BASE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="CURRENCY_BASE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.CURRENCY_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="CURRENCY_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.CUSTOMER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="CUSTOMER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.CUSTOMER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="CUSTOMER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.DNFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="DNFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.DNFLAG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="DNFLAG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.EXCH_BASE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="EXCH_BASE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.EXCH_BASE_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="EXCH_BASE_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.EXCH_LOC_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="EXCH_LOC_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.EXCH_LOC_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="EXCH_LOC_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.ITFUNCTION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="ITFUNCTION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.ITFUNCTION_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="ITFUNCTION_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.LOCATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="LOCATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.LOCATION_ENTEPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="LOCATION_ENTEPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.MANAGER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="MANAGER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.MANAGER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="MANAGER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.OCFLAG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="OCFLAG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.OCFLAG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="OCFLAG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.ORG_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="ORG_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.PERIOD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="PERIOD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.PERIOD_START_DATE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="PERIOD_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.PLANNEDCOST_DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="PLANNEDCOST_DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.PROGRAM_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="PROGRAM_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.PROGRAM_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="PROGRAM_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.PROJECT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="PROJECT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.PROJECT_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="PROJECT_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.SCENARIO_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="SCENARIO_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.SCENARIO_ENTEPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="SCENARIO_ENTEPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.SUPPLIER_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="SUPPLIER_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.SUPPLIER_ENTERPRISE_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="SUPPLIER_ENTERPRISE_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTPLANNEDCOST_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_ALTPLANNEDCOST_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_ALTPLANNEDCOST_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_ALTPLANNEDCOST_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTPLANNEDCOST_TSNP" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>No</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTPLANNEDCOST_EXT" >
<DIOutputView name="ALT_ALTPLANNEDCOST_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_PROJECT_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_PROJECT_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_MAX_WF_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_PROJECT_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_PROJECT_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="&#xD;&#xA;#WORKFLOW NAME&#xD;&#xA;$L_WF_NAME = workflow_name();&#xD;&#xA;&#xD;&#xA;# GET MAX PROCESS_ID OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID&#xD;&#xA;$L_MAX_WF_PROCESS_ID=M_ICPS_GET_MAX_WF_PROCESS_ID($G_BATCH_ID,$L_WF_NAME,job_name( ));&#xD;&#xA;&#xD;&#xA;# GET LAST EXECUTION STATUS OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID, ACCORDING TO MAX PROCESS_ID&#xD;&#xA;$L_LATEST_WF_STATUS =M_ICPS_GET_WF_STATUS($L_MAX_WF_PROCESS_ID,$L_WF_NAME );&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_WF_NAME" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_MAX_WF_PROCESS_ID" >
<DIExpression isString="true" expr="m_icps_get_max_wf_process_id($G_BATCH_ID, $L_WF_NAME, job_name())" >
<FUNCTION_CALL name="m_icps_get_max_wf_process_id"  type="DI" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
<FUNCTION_CALL name="job_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LATEST_WF_STATUS" >
<DIExpression isString="true" expr="m_icps_get_wf_status($L_MAX_WF_PROCESS_ID, $L_WF_NAME)" >
<FUNCTION_CALL name="m_icps_get_wf_status"  type="DI" >
<VARIABLE_REFERENCE name="$L_MAX_WF_PROCESS_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DIIfStep typeId="2" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="If_condition" value=" $L_LATEST_WF_STATUS&lt;&gt;'SUCCESS'  or $L_LATEST_WF_STATUS is null"/>
<DIAttribute name="ui_display_name" value="ALT_PROJECT_TSNP_CONDITION"/>
</DIUIOptions>
<DIExpression isString="true" expr="(($L_LATEST_WF_STATUS != 'SUCCESS') OR&#xA;   ($L_LATEST_WF_STATUS IS  NULL ))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_PROJECT_TSNP_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_LATEST_WF_STATUS" >
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</DIExpression>
</DIParameterValues>
</DICallStep>
</DIIf>
<DIElse>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Print"/>
<DIAttribute name="ui_script_text" value="ETL_PRINT('PREVIOS RUN OF WORKFLOW &gt;&gt; '||$L_WF_NAME||' FOR BATCH ID &gt;&gt; '||$G_BATCH_ID||' HAS FINISHED SUCCESSFULLY!');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('PREVIOS RUN OF WORKFLOW &gt;&gt; ' || $L_WF_NAME) || ' FOR BATCH ID &gt;&gt; ') || $G_BATCH_ID) || ' HAS FINISHED SUCCESSFULLY!'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="PREVIOS RUN OF WORKFLOW &gt;&gt; " datatype="VARCHAR" size="27" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</CONCAT>
<CONSTANT value=" FOR BATCH ID &gt;&gt; " datatype="VARCHAR" size="17" />
</CONCAT>
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</CONCAT>
<CONSTANT value=" HAS FINISHED SUCCESSFULLY!" datatype="VARCHAR" size="27" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DIElse>
</DIIfStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_PROJECT_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_PROJECT_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_PROJECT_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_PROJECT_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_ACTIVE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FLAG_ACTIVE"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_COMPLETED" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FLAG_COMPLETED"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_OBJECTIVE_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROJECT_OBJECTIVE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROJECT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="HEALTH_INDICATOR" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.HEALTH_INDICATOR"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_MGR_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROJECT_MGR_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PARENT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROJECT_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROJECT_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ORG_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="TOTAL_SCORE" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.TOTAL_SCORE"/>
</DIAttributes>
</DIElement>
<DIElement name="RISK_RATING" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.RISK_RATING"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SERVICE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LOCATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.END_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.END_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_END_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PLANNED_END_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_END_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PLANNED_END_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_START_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PLANNED_START_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_START_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PLANNED_START_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_APPROVAL_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROJECT_APPROVAL_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_APPROVAL_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROJECT_APPROVAL_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_INITIATION_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROJECT_INITIATION_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_INITIATION_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROJECT_INITIATION_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_ROLLOUT_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROJECT_ROLLOUT_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_ROLLOUT_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROJECT_ROLLOUT_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.START_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.START_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="WORK_PLAN_CREATED_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.WORK_PLAN_CREATED_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="WORK_PLAN_CREATED_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.WORK_PLAN_CREATED_DATE_UTC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FLAG_ACTIVE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FLAG_ACTIVE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FLAG_COMPLETED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FLAG_COMPLETED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROJECT_OBJECTIVE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROJECT_OBJECTIVE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROJECT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROJECT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.HEALTH_INDICATOR" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="HEALTH_INDICATOR" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROJECT_MGR_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROJECT_MGR_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PARENT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PARENT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROJECT_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROJECT_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROJECT_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROJECT_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ORG_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ORG_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.TOTAL_SCORE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="TOTAL_SCORE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.RISK_RATING" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="RISK_RATING" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SERVICE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LOCATION_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LOCATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.END_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="END_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.END_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="END_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PLANNED_END_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PLANNED_END_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PLANNED_END_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PLANNED_END_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PLANNED_START_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PLANNED_START_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PLANNED_START_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PLANNED_START_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROJECT_APPROVAL_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROJECT_APPROVAL_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROJECT_APPROVAL_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROJECT_APPROVAL_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROJECT_INITIATION_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROJECT_INITIATION_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROJECT_INITIATION_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROJECT_INITIATION_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROJECT_ROLLOUT_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROJECT_ROLLOUT_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROJECT_ROLLOUT_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROJECT_ROLLOUT_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.START_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="START_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.START_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="START_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.WORK_PLAN_CREATED_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="WORK_PLAN_CREATED_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.WORK_PLAN_CREATED_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="WORK_PLAN_CREATED_DATE_UTC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_ACTIVE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FLAG_ACTIVE"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_COMPLETED" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FLAG_COMPLETED"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_OBJECTIVE_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROJECT_OBJECTIVE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROJECT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="HEALTH_INDICATOR" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.HEALTH_INDICATOR"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_MGR_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROJECT_MGR_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PARENT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROJECT_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROJECT_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ORG_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="TOTAL_SCORE" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.TOTAL_SCORE"/>
</DIAttributes>
</DIElement>
<DIElement name="RISK_RATING" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.RISK_RATING"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SERVICE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LOCATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.END_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.END_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_END_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PLANNED_END_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_END_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PLANNED_END_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_START_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PLANNED_START_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_START_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PLANNED_START_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_APPROVAL_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROJECT_APPROVAL_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_APPROVAL_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROJECT_APPROVAL_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_INITIATION_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROJECT_INITIATION_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_INITIATION_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROJECT_INITIATION_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_ROLLOUT_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROJECT_ROLLOUT_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_ROLLOUT_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROJECT_ROLLOUT_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.START_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.START_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="WORK_PLAN_CREATED_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.WORK_PLAN_CREATED_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="WORK_PLAN_CREATED_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.WORK_PLAN_CREATED_DATE_UTC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FLAG_ACTIVE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FLAG_ACTIVE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FLAG_COMPLETED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FLAG_COMPLETED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROJECT_OBJECTIVE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROJECT_OBJECTIVE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROJECT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROJECT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.HEALTH_INDICATOR" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="HEALTH_INDICATOR" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROJECT_MGR_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROJECT_MGR_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PARENT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PARENT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROJECT_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROJECT_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROJECT_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROJECT_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ORG_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ORG_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.TOTAL_SCORE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="TOTAL_SCORE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.RISK_RATING" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="RISK_RATING" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SERVICE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LOCATION_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LOCATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.END_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="END_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.END_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="END_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PLANNED_END_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PLANNED_END_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PLANNED_END_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PLANNED_END_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PLANNED_START_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PLANNED_START_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PLANNED_START_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PLANNED_START_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROJECT_APPROVAL_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROJECT_APPROVAL_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROJECT_APPROVAL_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROJECT_APPROVAL_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROJECT_INITIATION_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROJECT_INITIATION_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROJECT_INITIATION_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROJECT_INITIATION_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROJECT_ROLLOUT_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROJECT_ROLLOUT_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROJECT_ROLLOUT_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROJECT_ROLLOUT_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.START_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="START_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.START_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="START_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.WORK_PLAN_CREATED_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="WORK_PLAN_CREATED_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.WORK_PLAN_CREATED_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="WORK_PLAN_CREATED_DATE_UTC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_ACTIVE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FLAG_ACTIVE"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_COMPLETED" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FLAG_COMPLETED"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_OBJECTIVE_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROJECT_OBJECTIVE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROJECT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="HEALTH_INDICATOR" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.HEALTH_INDICATOR"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_MGR_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROJECT_MGR_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PARENT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROJECT_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROJECT_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ORG_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="TOTAL_SCORE" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.TOTAL_SCORE"/>
</DIAttributes>
</DIElement>
<DIElement name="RISK_RATING" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.RISK_RATING"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SERVICE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LOCATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.END_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.END_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_END_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PLANNED_END_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_END_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PLANNED_END_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_START_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PLANNED_START_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_START_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PLANNED_START_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_APPROVAL_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROJECT_APPROVAL_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_APPROVAL_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROJECT_APPROVAL_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_INITIATION_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROJECT_INITIATION_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_INITIATION_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROJECT_INITIATION_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_ROLLOUT_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROJECT_ROLLOUT_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_ROLLOUT_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROJECT_ROLLOUT_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.START_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.START_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="WORK_PLAN_CREATED_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.WORK_PLAN_CREATED_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="WORK_PLAN_CREATED_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.WORK_PLAN_CREATED_DATE_UTC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FLAG_ACTIVE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FLAG_ACTIVE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FLAG_COMPLETED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FLAG_COMPLETED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROJECT_OBJECTIVE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROJECT_OBJECTIVE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROJECT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROJECT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.HEALTH_INDICATOR" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="HEALTH_INDICATOR" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROJECT_MGR_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROJECT_MGR_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PARENT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PARENT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROJECT_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROJECT_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROJECT_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROJECT_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ORG_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ORG_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.TOTAL_SCORE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="TOTAL_SCORE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.RISK_RATING" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="RISK_RATING" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SERVICE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LOCATION_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LOCATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.END_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="END_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.END_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="END_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PLANNED_END_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PLANNED_END_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PLANNED_END_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PLANNED_END_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PLANNED_START_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PLANNED_START_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PLANNED_START_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PLANNED_START_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROJECT_APPROVAL_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROJECT_APPROVAL_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROJECT_APPROVAL_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROJECT_APPROVAL_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROJECT_INITIATION_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROJECT_INITIATION_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROJECT_INITIATION_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROJECT_INITIATION_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROJECT_ROLLOUT_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROJECT_ROLLOUT_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROJECT_ROLLOUT_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROJECT_ROLLOUT_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.START_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="START_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.START_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="START_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.WORK_PLAN_CREATED_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="WORK_PLAN_CREATED_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.WORK_PLAN_CREATED_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="WORK_PLAN_CREATED_DATE_UTC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_PROJECT_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_PROJECT_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_ACTIVE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.FLAG_ACTIVE"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_COMPLETED" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.FLAG_COMPLETED"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_OBJECTIVE_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.PROJECT_OBJECTIVE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.PROJECT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="HEALTH_INDICATOR" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.HEALTH_INDICATOR"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_MGR_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.PROJECT_MGR_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.PARENT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.PROJECT_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.PROJECT_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.ORG_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="TOTAL_SCORE" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.TOTAL_SCORE"/>
</DIAttributes>
</DIElement>
<DIElement name="RISK_RATING" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.RISK_RATING"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.SERVICE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.LOCATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.END_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.END_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_END_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.PLANNED_END_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_END_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.PLANNED_END_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_START_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.PLANNED_START_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_START_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.PLANNED_START_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_APPROVAL_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.PROJECT_APPROVAL_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_APPROVAL_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.PROJECT_APPROVAL_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_INITIATION_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.PROJECT_INITIATION_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_INITIATION_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.PROJECT_INITIATION_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_ROLLOUT_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.PROJECT_ROLLOUT_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_ROLLOUT_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.PROJECT_ROLLOUT_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.START_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.START_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="WORK_PLAN_CREATED_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.WORK_PLAN_CREATED_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="WORK_PLAN_CREATED_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECT_EXT.WORK_PLAN_CREATED_DATE_UTC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.FLAG_ACTIVE" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="FLAG_ACTIVE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.STATUS" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="STATUS" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.FLAG_COMPLETED" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="FLAG_COMPLETED" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.PROJECT_OBJECTIVE_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="PROJECT_OBJECTIVE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.PROJECT_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="PROJECT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.HEALTH_INDICATOR" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="HEALTH_INDICATOR" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.PROJECT_MGR_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="PROJECT_MGR_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.PARENT_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="PARENT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.PROJECT_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="PROJECT_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.PROJECT_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="PROJECT_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.ORG_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="ORG_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.TOTAL_SCORE" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="TOTAL_SCORE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.RISK_RATING" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="RISK_RATING" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="SERVICE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.LOCATION_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="LOCATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.END_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="END_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.END_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="END_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.PLANNED_END_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="PLANNED_END_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.PLANNED_END_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="PLANNED_END_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.PLANNED_START_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="PLANNED_START_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.PLANNED_START_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="PLANNED_START_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.PROJECT_APPROVAL_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="PROJECT_APPROVAL_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.PROJECT_APPROVAL_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="PROJECT_APPROVAL_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.PROJECT_INITIATION_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="PROJECT_INITIATION_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.PROJECT_INITIATION_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="PROJECT_INITIATION_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.PROJECT_ROLLOUT_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="PROJECT_ROLLOUT_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.PROJECT_ROLLOUT_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="PROJECT_ROLLOUT_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.START_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="START_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.START_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="START_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.WORK_PLAN_CREATED_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="WORK_PLAN_CREATED_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECT_EXT.WORK_PLAN_CREATED_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="WORK_PLAN_CREATED_DATE_UTC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_PROJECT_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_PROJECT_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_PROJECT_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_PROJECT_EXT" >
<DIOutputView name="ALT_PROJECT_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_PROJECT_TSNP" >
<DIInputView name="CASE_LOAD_FIRST_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>No</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_PROJECT_TSNP.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CASE_LOAD_FIRST_RUN" value="$P_LATEST_WF_STATUS IS NULL and ($G_DEBUG_MODE &lt;&gt;1 or $G_DEBUG_MODE IS NULL) and ($G_TRACE_MODE &lt;&gt;1 or $G_TRACE_MODE IS NULL)"/>
<DIAttribute name="CASE_LOAD_RE_RUN" value="DEFAULT"/>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="CASE_LOAD"/>
</DIUIOptions>
<DIInputView name="Merge" />
<DISchema name="CASE_LOAD" >
</DISchema>
<DICase>
<DISwitch label="FIRST_RUN" outputView="CASE_LOAD_FIRST_RUN" isDefault="false">
<DIExpression isString="true" expr="((($P_LATEST_WF_STATUS IS  NULL ) AND&#xA;   (  (($G_DEBUG_MODE != 1) OR&#xA;   ($G_DEBUG_MODE IS  NULL ))  )) AND&#xA;   (  (($G_TRACE_MODE != 1) OR&#xA;   ($G_TRACE_MODE IS  NULL ))  ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_LATEST_WF_STATUS" />
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="RE_RUN" outputView="CASE_LOAD_RE_RUN" isDefault="true">
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_PROJECT_TSNP" >
<DIInputView name="CASE_LOAD_RE_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_PROJECT_TSNP.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_PROJECTTASK_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Thu, 31 Mar 2011 15:07:45"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_PROJECTTASK_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_PROJECTTASK_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_PROJECTTASK_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_PROJECTTASK_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_PROJECTTASK_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_PROJECTTASK_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_PROJECTTASK_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_PROJECTTASK_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Thu, 31 Mar 2011 15:07:45"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTUAL_EFFORT" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Actual effort spent"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ACTUAL_EFFORT"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Actual completion date of the task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.END_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Actual completion date of the task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.END_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="ESTIMATED_REMAINING_EFFORT" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Estimated remaining effort"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ESTIMATED_REMAINING_EFFORT"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_EXTERNAL_RSC_USED" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Flag indicating if external resources are used"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FLAG_EXTERNAL_RSC_USED"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Location"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LOCATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Organization"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ORG_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Person"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PERSON_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Planned duration "/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PLANNED_DURATION"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_EFFORT" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Planned effort"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PLANNED_EFFORT"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_END_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Planned end date of the Task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PLANNED_END_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_END_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Planned end date of the Task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PLANNED_END_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_START_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Planned start date of the Task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PLANNED_START_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_START_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Planned start date of the Task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PLANNED_START_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to PROJECT"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROJECT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Service"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SERVICE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Actual start date of the task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.START_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Actual start date of the task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.START_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="TASK_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Display name of Task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.TASK_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ACTUAL_EFFORT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ACTUAL_EFFORT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.END_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="END_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.END_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="END_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ESTIMATED_REMAINING_EFFORT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ESTIMATED_REMAINING_EFFORT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FLAG_EXTERNAL_RSC_USED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FLAG_EXTERNAL_RSC_USED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LOCATION_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LOCATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ORG_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ORG_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PERSON_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PERSON_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PLANNED_DURATION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PLANNED_DURATION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PLANNED_EFFORT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PLANNED_EFFORT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PLANNED_END_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PLANNED_END_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PLANNED_END_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PLANNED_END_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PLANNED_START_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PLANNED_START_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PLANNED_START_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PLANNED_START_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROJECT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROJECT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SERVICE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.START_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="START_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.START_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="START_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.TASK_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="TASK_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTUAL_EFFORT" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Actual effort spent"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ACTUAL_EFFORT"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Actual completion date of the task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.END_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Actual completion date of the task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.END_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="ESTIMATED_REMAINING_EFFORT" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Estimated remaining effort"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ESTIMATED_REMAINING_EFFORT"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_EXTERNAL_RSC_USED" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Flag indicating if external resources are used"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FLAG_EXTERNAL_RSC_USED"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Location"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LOCATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Organization"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ORG_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Person"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PERSON_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Planned duration "/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PLANNED_DURATION"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_EFFORT" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Planned effort"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PLANNED_EFFORT"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_END_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Planned end date of the Task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PLANNED_END_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_END_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Planned end date of the Task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PLANNED_END_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_START_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Planned start date of the Task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PLANNED_START_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_START_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Planned start date of the Task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PLANNED_START_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to PROJECT"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROJECT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Service"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SERVICE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Actual start date of the task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.START_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Actual start date of the task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.START_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="TASK_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Display name of Task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.TASK_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ACTUAL_EFFORT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ACTUAL_EFFORT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.END_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="END_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.END_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="END_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ESTIMATED_REMAINING_EFFORT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ESTIMATED_REMAINING_EFFORT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FLAG_EXTERNAL_RSC_USED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FLAG_EXTERNAL_RSC_USED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LOCATION_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LOCATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ORG_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ORG_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PERSON_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PERSON_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PLANNED_DURATION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PLANNED_DURATION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PLANNED_EFFORT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PLANNED_EFFORT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PLANNED_END_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PLANNED_END_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PLANNED_END_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PLANNED_END_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PLANNED_START_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PLANNED_START_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PLANNED_START_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PLANNED_START_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROJECT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROJECT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SERVICE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.START_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="START_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.START_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="START_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.TASK_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="TASK_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTUAL_EFFORT" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Actual effort spent"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ACTUAL_EFFORT"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Actual completion date of the task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.END_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Actual completion date of the task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.END_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="ESTIMATED_REMAINING_EFFORT" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Estimated remaining effort"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ESTIMATED_REMAINING_EFFORT"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_EXTERNAL_RSC_USED" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Flag indicating if external resources are used"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FLAG_EXTERNAL_RSC_USED"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Location"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LOCATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Organization"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ORG_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Person"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PERSON_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Planned duration "/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PLANNED_DURATION"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_EFFORT" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Planned effort"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PLANNED_EFFORT"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_END_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Planned end date of the Task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PLANNED_END_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_END_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Planned end date of the Task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PLANNED_END_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_START_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Planned start date of the Task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PLANNED_START_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_START_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Planned start date of the Task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PLANNED_START_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to PROJECT"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROJECT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Service"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SERVICE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Actual start date of the task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.START_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Actual start date of the task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.START_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="TASK_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Display name of Task"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.TASK_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ACTUAL_EFFORT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ACTUAL_EFFORT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.END_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="END_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.END_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="END_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ESTIMATED_REMAINING_EFFORT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ESTIMATED_REMAINING_EFFORT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FLAG_EXTERNAL_RSC_USED" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FLAG_EXTERNAL_RSC_USED" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LOCATION_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LOCATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ORG_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ORG_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PERSON_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PERSON_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PLANNED_DURATION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PLANNED_DURATION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PLANNED_EFFORT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PLANNED_EFFORT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PLANNED_END_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PLANNED_END_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PLANNED_END_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PLANNED_END_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PLANNED_START_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PLANNED_START_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PLANNED_START_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PLANNED_START_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROJECT_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROJECT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SERVICE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.START_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="START_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.START_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="START_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.TASK_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="TASK_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_PROJECTTASK_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_PROJECTTASK_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTUAL_EFFORT" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Actual effort spent"/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.ACTUAL_EFFORT"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Actual completion date of the task"/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.END_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="END_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Actual completion date of the task"/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.END_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="ESTIMATED_REMAINING_EFFORT" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Estimated remaining effort"/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.ESTIMATED_REMAINING_EFFORT"/>
</DIAttributes>
</DIElement>
<DIElement name="FLAG_EXTERNAL_RSC_USED" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="Flag indicating if external resources are used"/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.FLAG_EXTERNAL_RSC_USED"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Location"/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.LOCATION_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.MD_PF_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Organization"/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.ORG_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Person"/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.PERSON_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_DURATION" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Planned duration "/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.PLANNED_DURATION"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_EFFORT" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Planned effort"/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.PLANNED_EFFORT"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_END_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Planned end date of the Task"/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.PLANNED_END_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_END_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Planned end date of the Task"/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.PLANNED_END_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_START_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Planned start date of the Task"/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.PLANNED_START_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PLANNED_START_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Planned start date of the Task"/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.PLANNED_START_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to PROJECT"/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.PROJECT_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Service"/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.SERVICE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Actual start date of the task"/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.START_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="START_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Actual start date of the task"/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.START_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="TASK_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Display name of Task"/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.TASK_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PROJECTTASK_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.ACTUAL_EFFORT" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="ACTUAL_EFFORT" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.END_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="END_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.END_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="END_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.ESTIMATED_REMAINING_EFFORT" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="ESTIMATED_REMAINING_EFFORT" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.FLAG_EXTERNAL_RSC_USED" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="FLAG_EXTERNAL_RSC_USED" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.LOCATION_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="LOCATION_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.ORG_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="ORG_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.PERSON_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="PERSON_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.PLANNED_DURATION" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="PLANNED_DURATION" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.PLANNED_EFFORT" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="PLANNED_EFFORT" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.PLANNED_END_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="PLANNED_END_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.PLANNED_END_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="PLANNED_END_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.PLANNED_START_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="PLANNED_START_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.PLANNED_START_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="PLANNED_START_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.PROJECT_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="PROJECT_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="SERVICE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.START_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="START_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.START_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="START_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.TASK_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="TASK_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PROJECTTASK_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_PROJECTTASK_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_PROJECTTASK_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_PROJECTTASK_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_PROJECTTASK_TSNP" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_PROJECTTASK_EXT" >
<DIOutputView name="ALT_PROJECTTASK_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_REVENUE_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Thu, 24 Mar 2011 12:26:27"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_REVENUE_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_REVENUE_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_REVENUE_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_REVENUE_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_REVENUE_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_REVENUE_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_REVENUE_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_REVENUE_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Thu, 24 Mar 2011 12:26:27"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTUAL_REVENUE_BASE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Actual revenue for the period"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ACTUAL_REVENUE_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTUAL_REVENUE_LOC" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Actual revenue for the period"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ACTUAL_REVENUE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Department or company (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Period Start Date (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PERIOD_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="PLAN_REVENUE_BASE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Plan revenue for the period"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PLAN_REVENUE_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="PLAN_REVENUE_LOC" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Plan revenue for the period"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PLAN_REVENUE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Project (PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROJECT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Service (SERVICE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ACTUAL_REVENUE_BASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ACTUAL_REVENUE_BASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ACTUAL_REVENUE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ACTUAL_REVENUE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PERIOD_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PERIOD_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PLAN_REVENUE_BASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PLAN_REVENUE_BASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PLAN_REVENUE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PLAN_REVENUE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROJECT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROJECT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTUAL_REVENUE_BASE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Actual revenue for the period"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ACTUAL_REVENUE_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTUAL_REVENUE_LOC" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Actual revenue for the period"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ACTUAL_REVENUE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Department or company (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Period Start Date (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PERIOD_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="PLAN_REVENUE_BASE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Plan revenue for the period"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PLAN_REVENUE_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="PLAN_REVENUE_LOC" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Plan revenue for the period"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PLAN_REVENUE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Project (PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROJECT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Service (SERVICE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ACTUAL_REVENUE_BASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ACTUAL_REVENUE_BASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ACTUAL_REVENUE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ACTUAL_REVENUE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PERIOD_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PERIOD_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PLAN_REVENUE_BASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PLAN_REVENUE_BASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PLAN_REVENUE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PLAN_REVENUE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROJECT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROJECT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTUAL_REVENUE_BASE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Actual revenue for the period"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ACTUAL_REVENUE_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTUAL_REVENUE_LOC" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Actual revenue for the period"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ACTUAL_REVENUE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Department or company (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Period Start Date (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PERIOD_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="PLAN_REVENUE_BASE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Plan revenue for the period"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PLAN_REVENUE_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="PLAN_REVENUE_LOC" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Plan revenue for the period"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PLAN_REVENUE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Project (PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROJECT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Service (SERVICE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ACTUAL_REVENUE_BASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ACTUAL_REVENUE_BASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ACTUAL_REVENUE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ACTUAL_REVENUE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PERIOD_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PERIOD_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PLAN_REVENUE_BASE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PLAN_REVENUE_BASE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PLAN_REVENUE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PLAN_REVENUE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROJECT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROJECT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_REVENUE_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_REVENUE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTUAL_REVENUE_BASE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Actual revenue for the period"/>
<DIAttribute name="ui_mapping_text" value="ALT_REVENUE_EXT.ACTUAL_REVENUE_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTUAL_REVENUE_LOC" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Actual revenue for the period"/>
<DIAttribute name="ui_mapping_text" value="ALT_REVENUE_EXT.ACTUAL_REVENUE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_REVENUE_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_REVENUE_EXT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_REVENUE_EXT.MD_PF_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Department or company (ORG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_REVENUE_EXT.ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Period Start Date (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="ALT_REVENUE_EXT.PERIOD_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="PLAN_REVENUE_BASE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Plan revenue for the period"/>
<DIAttribute name="ui_mapping_text" value="ALT_REVENUE_EXT.PLAN_REVENUE_BASE"/>
</DIAttributes>
</DIElement>
<DIElement name="PLAN_REVENUE_LOC" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Plan revenue for the period"/>
<DIAttribute name="ui_mapping_text" value="ALT_REVENUE_EXT.PLAN_REVENUE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign Key to the Project (PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="ALT_REVENUE_EXT.PROJECT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Service (SERVICE)"/>
<DIAttribute name="ui_mapping_text" value="ALT_REVENUE_EXT.SERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_REVENUE_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_REVENUE_EXT.ACTUAL_REVENUE_BASE" >
<COLUMN_REFERENCE  qualifier1="ALT_REVENUE_EXT" column="ACTUAL_REVENUE_BASE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_REVENUE_EXT.ACTUAL_REVENUE_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_REVENUE_EXT" column="ACTUAL_REVENUE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_REVENUE_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_REVENUE_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_REVENUE_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_REVENUE_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_REVENUE_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_REVENUE_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_REVENUE_EXT.ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_REVENUE_EXT" column="ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_REVENUE_EXT.PERIOD_START_DATE" >
<COLUMN_REFERENCE  qualifier1="ALT_REVENUE_EXT" column="PERIOD_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_REVENUE_EXT.PLAN_REVENUE_BASE" >
<COLUMN_REFERENCE  qualifier1="ALT_REVENUE_EXT" column="PLAN_REVENUE_BASE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_REVENUE_EXT.PLAN_REVENUE_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_REVENUE_EXT" column="PLAN_REVENUE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_REVENUE_EXT.PROJECT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_REVENUE_EXT" column="PROJECT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_REVENUE_EXT.SERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_REVENUE_EXT" column="SERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_REVENUE_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_REVENUE_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_REVENUE_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_REVENUE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_REVENUE_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_REVENUE_TSNP" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_REVENUE_EXT" >
<DIOutputView name="ALT_REVENUE_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_CHANGE_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Fri, 25 Mar 2011 13:30:33"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_CHANGE_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_CHANGE_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_CHANGE_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_CHANGE_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_CHANGE_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_CHANGE_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_CHANGE_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_CHANGE_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Fri, 25 Mar 2011 13:30:33"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="APPROVAL_STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="The current status of the approval process for change .  The status may be pending approval, approved, or denied."/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.APPROVAL_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="CHANGE_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="A High level categorization of the Change"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CHANGE_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="CHANGE_SUBCATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="A further categorization of a change"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CHANGE_SUBCATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Close Time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CLOSE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Close Time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CLOSE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLETION_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Code that describes the completion state of the ITIL Process"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COMPLETION_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Create Time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CREATE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Create Time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CREATE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="EMERGENCY_CHANGE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="An indicator for whether a Change must be introduced as soon as possible.  For example, to resolve a Major Incident or implement a Security patch.  The change management process will normally have a specific procedure for handling emergency changes."/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.EMERGENCY_CHANGE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Outage End"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OUTAGE_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Outage End"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OUTAGE_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Outage Start"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OUTAGE_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Outage Start"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OUTAGE_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PRIORITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="A Priority is used to identify the relative importance of a Change"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PRIORITY"/>
</DIAttributes>
</DIElement>
<DIElement name="REFERENCE_NUMBER" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="An identifier local to the specific deployment location"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.REFERENCE_NUMBER"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Service Name"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SERVICE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="UNPLANNED_CHANGE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="An indicator to show whether the change is planned or Unplanned"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.UNPLANNED_CHANGE"/>
</DIAttributes>
</DIElement>
<DIElement name="URGENCY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="An indicator of how long it will be until an Incident, Problem, or Change has a significant Impact on the Business. "/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.URGENCY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.APPROVAL_STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="APPROVAL_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CHANGE_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CHANGE_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CHANGE_SUBCATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CHANGE_SUBCATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CLOSE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CLOSE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CLOSE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CLOSE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COMPLETION_CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COMPLETION_CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CREATE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CREATE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CREATE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CREATE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.EMERGENCY_CHANGE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="EMERGENCY_CHANGE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OUTAGE_END_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OUTAGE_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OUTAGE_END_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OUTAGE_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OUTAGE_START_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OUTAGE_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OUTAGE_START_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OUTAGE_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PRIORITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PRIORITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.REFERENCE_NUMBER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="REFERENCE_NUMBER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SERVICE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.UNPLANNED_CHANGE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="UNPLANNED_CHANGE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.URGENCY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="URGENCY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="APPROVAL_STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="The current status of the approval process for change .  The status may be pending approval, approved, or denied."/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.APPROVAL_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="CHANGE_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="A High level categorization of the Change"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CHANGE_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="CHANGE_SUBCATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="A further categorization of a change"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CHANGE_SUBCATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Close Time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CLOSE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Close Time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CLOSE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLETION_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Code that describes the completion state of the ITIL Process"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COMPLETION_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Create Time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CREATE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Create Time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CREATE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="EMERGENCY_CHANGE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="An indicator for whether a Change must be introduced as soon as possible.  For example, to resolve a Major Incident or implement a Security patch.  The change management process will normally have a specific procedure for handling emergency changes."/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.EMERGENCY_CHANGE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Outage End"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OUTAGE_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Outage End"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OUTAGE_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Outage Start"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OUTAGE_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Outage Start"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OUTAGE_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PRIORITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="A Priority is used to identify the relative importance of a Change"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PRIORITY"/>
</DIAttributes>
</DIElement>
<DIElement name="REFERENCE_NUMBER" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="An identifier local to the specific deployment location"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.REFERENCE_NUMBER"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Service Name"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SERVICE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="UNPLANNED_CHANGE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="An indicator to show whether the change is planned or Unplanned"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.UNPLANNED_CHANGE"/>
</DIAttributes>
</DIElement>
<DIElement name="URGENCY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="An indicator of how long it will be until an Incident, Problem, or Change has a significant Impact on the Business. "/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.URGENCY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.APPROVAL_STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="APPROVAL_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CHANGE_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CHANGE_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CHANGE_SUBCATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CHANGE_SUBCATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CLOSE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CLOSE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CLOSE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CLOSE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COMPLETION_CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COMPLETION_CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CREATE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CREATE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CREATE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CREATE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.EMERGENCY_CHANGE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="EMERGENCY_CHANGE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OUTAGE_END_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OUTAGE_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OUTAGE_END_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OUTAGE_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OUTAGE_START_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OUTAGE_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OUTAGE_START_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OUTAGE_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PRIORITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PRIORITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.REFERENCE_NUMBER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="REFERENCE_NUMBER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SERVICE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.UNPLANNED_CHANGE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="UNPLANNED_CHANGE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.URGENCY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="URGENCY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="APPROVAL_STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="The current status of the approval process for change .  The status may be pending approval, approved, or denied."/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.APPROVAL_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="CHANGE_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="A High level categorization of the Change"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CHANGE_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="CHANGE_SUBCATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="A further categorization of a change"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CHANGE_SUBCATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Close Time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CLOSE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Close Time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CLOSE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLETION_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Code that describes the completion state of the ITIL Process"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COMPLETION_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Create Time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CREATE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Create Time"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CREATE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="EMERGENCY_CHANGE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="An indicator for whether a Change must be introduced as soon as possible.  For example, to resolve a Major Incident or implement a Security patch.  The change management process will normally have a specific procedure for handling emergency changes."/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.EMERGENCY_CHANGE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Outage End"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OUTAGE_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Outage End"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OUTAGE_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Outage Start"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OUTAGE_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Outage Start"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OUTAGE_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PRIORITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="A Priority is used to identify the relative importance of a Change"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PRIORITY"/>
</DIAttributes>
</DIElement>
<DIElement name="REFERENCE_NUMBER" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="An identifier local to the specific deployment location"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.REFERENCE_NUMBER"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Service Name"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SERVICE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="UNPLANNED_CHANGE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="An indicator to show whether the change is planned or Unplanned"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.UNPLANNED_CHANGE"/>
</DIAttributes>
</DIElement>
<DIElement name="URGENCY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="An indicator of how long it will be until an Incident, Problem, or Change has a significant Impact on the Business. "/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.URGENCY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.APPROVAL_STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="APPROVAL_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CHANGE_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CHANGE_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CHANGE_SUBCATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CHANGE_SUBCATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CLOSE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CLOSE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CLOSE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CLOSE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COMPLETION_CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COMPLETION_CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CREATE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CREATE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CREATE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CREATE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.EMERGENCY_CHANGE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="EMERGENCY_CHANGE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OUTAGE_END_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OUTAGE_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OUTAGE_END_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OUTAGE_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OUTAGE_START_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OUTAGE_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OUTAGE_START_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OUTAGE_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PRIORITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PRIORITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.REFERENCE_NUMBER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="REFERENCE_NUMBER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SERVICE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.UNPLANNED_CHANGE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="UNPLANNED_CHANGE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.URGENCY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="URGENCY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_CHANGE_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_CHANGE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="APPROVAL_STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="The current status of the approval process for change .  The status may be pending approval, approved, or denied."/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.APPROVAL_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="CHANGE_CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="A High level categorization of the Change"/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.CHANGE_CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="CHANGE_SUBCATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="A further categorization of a change"/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.CHANGE_SUBCATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Close Time"/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.CLOSE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Close Time"/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.CLOSE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLETION_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Code that describes the completion state of the ITIL Process"/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.COMPLETION_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Create Time"/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.CREATE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Create Time"/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.CREATE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="EMERGENCY_CHANGE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="An indicator for whether a Change must be introduced as soon as possible.  For example, to resolve a Major Incident or implement a Security patch.  The change management process will normally have a specific procedure for handling emergency changes."/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.EMERGENCY_CHANGE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.MD_PF_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Outage End"/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.OUTAGE_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_END_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Outage End"/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.OUTAGE_END_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Outage Start"/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.OUTAGE_START_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_START_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Outage Start"/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.OUTAGE_START_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="PRIORITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="A Priority is used to identify the relative importance of a Change"/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.PRIORITY"/>
</DIAttributes>
</DIElement>
<DIElement name="REFERENCE_NUMBER" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="An identifier local to the specific deployment location"/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.REFERENCE_NUMBER"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Service Name"/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.SERVICE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="UNPLANNED_CHANGE" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value="An indicator to show whether the change is planned or Unplanned"/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.UNPLANNED_CHANGE"/>
</DIAttributes>
</DIElement>
<DIElement name="URGENCY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="An indicator of how long it will be until an Incident, Problem, or Change has a significant Impact on the Business. "/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.URGENCY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_CHANGE_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.APPROVAL_STATUS" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="APPROVAL_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.CHANGE_CATEGORY" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="CHANGE_CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.CHANGE_SUBCATEGORY" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="CHANGE_SUBCATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.CLOSE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="CLOSE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.CLOSE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="CLOSE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.COMPLETION_CODE" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="COMPLETION_CODE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.CREATE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="CREATE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.CREATE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="CREATE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.EMERGENCY_CHANGE" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="EMERGENCY_CHANGE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.OUTAGE_END_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="OUTAGE_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.OUTAGE_END_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="OUTAGE_END_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.OUTAGE_START_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="OUTAGE_START_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.OUTAGE_START_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="OUTAGE_START_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.PRIORITY" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="PRIORITY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.REFERENCE_NUMBER" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="REFERENCE_NUMBER" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="SERVICE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.UNPLANNED_CHANGE" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="UNPLANNED_CHANGE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.URGENCY" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="URGENCY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_CHANGE_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_CHANGE_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_CHANGE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_CHANGE_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_CHANGE_TSNP" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_CHANGE_EXT" >
<DIOutputView name="ALT_CHANGE_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_INCIDENT_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_INCIDENT_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_MAX_WF_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_INCIDENT_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_INCIDENT_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="&#xD;&#xA;#WORKFLOW NAME&#xD;&#xA;$L_WF_NAME = workflow_name();&#xD;&#xA;&#xD;&#xA;# GET MAX PROCESS_ID OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID&#xD;&#xA;$L_MAX_WF_PROCESS_ID=M_ICPS_GET_MAX_WF_PROCESS_ID($G_BATCH_ID,$L_WF_NAME,job_name( ));&#xD;&#xA;&#xD;&#xA;# GET LAST EXECUTION STATUS OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID, ACCORDING TO MAX PROCESS_ID&#xD;&#xA;$L_LATEST_WF_STATUS =M_ICPS_GET_WF_STATUS($L_MAX_WF_PROCESS_ID,$L_WF_NAME );&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_WF_NAME" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_MAX_WF_PROCESS_ID" >
<DIExpression isString="true" expr="m_icps_get_max_wf_process_id($G_BATCH_ID, $L_WF_NAME, job_name())" >
<FUNCTION_CALL name="m_icps_get_max_wf_process_id"  type="DI" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
<FUNCTION_CALL name="job_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LATEST_WF_STATUS" >
<DIExpression isString="true" expr="m_icps_get_wf_status($L_MAX_WF_PROCESS_ID, $L_WF_NAME)" >
<FUNCTION_CALL name="m_icps_get_wf_status"  type="DI" >
<VARIABLE_REFERENCE name="$L_MAX_WF_PROCESS_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DIIfStep typeId="2" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="If_condition" value=" $L_LATEST_WF_STATUS&lt;&gt;'SUCCESS'  or $L_LATEST_WF_STATUS is null"/>
<DIAttribute name="ui_display_name" value="ALT_INCIDENT_TSNP_CONDITION"/>
</DIUIOptions>
<DIExpression isString="true" expr="(($L_LATEST_WF_STATUS != 'SUCCESS') OR&#xA;   ($L_LATEST_WF_STATUS IS  NULL ))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_INCIDENT_TSNP_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_LATEST_WF_STATUS" >
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</DIExpression>
</DIParameterValues>
</DICallStep>
</DIIf>
<DIElse>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Print"/>
<DIAttribute name="ui_script_text" value="ETL_PRINT('PREVIOS RUN OF WORKFLOW &gt;&gt; '||$L_WF_NAME||' FOR BATCH ID &gt;&gt; '||$G_BATCH_ID||' HAS FINISHED SUCCESSFULLY!');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('PREVIOS RUN OF WORKFLOW &gt;&gt; ' || $L_WF_NAME) || ' FOR BATCH ID &gt;&gt; ') || $G_BATCH_ID) || ' HAS FINISHED SUCCESSFULLY!'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="PREVIOS RUN OF WORKFLOW &gt;&gt; " datatype="VARCHAR" size="27" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</CONCAT>
<CONSTANT value=" FOR BATCH ID &gt;&gt; " datatype="VARCHAR" size="17" />
</CONCAT>
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</CONCAT>
<CONSTANT value=" HAS FINISHED SUCCESSFULLY!" datatype="VARCHAR" size="27" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DIElse>
</DIIfStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_INCIDENT_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_INCIDENT_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_INCIDENT_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_INCIDENT_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="INCIDENT_STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.INCIDENT_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="INCIDENT_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.INCIDENT_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="SUBCATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SUBCATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTIVE_PROCESS" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ACTIVE_PROCESS"/>
</DIAttributes>
</DIElement>
<DIElement name="PRIORITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PRIORITY"/>
</DIAttributes>
</DIElement>
<DIElement name="REFERENCE_NUMBER" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.REFERENCE_NUMBER"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLETION_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.COMPLETION_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="IMPACT_SCOPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.IMPACT_SCOPE"/>
</DIAttributes>
</DIElement>
<DIElement name="URGENCY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.URGENCY"/>
</DIAttributes>
</DIElement>
<DIElement name="ESCALATION" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ESCALATION"/>
</DIAttributes>
</DIElement>
<DIElement name="PROBLEM_NUMBER" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROBLEM_NUMBER"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SERVICE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="REQUESTED_BY_ORG" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.REQUESTED_BY_ORG"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSIGNED_TO_ORG" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ASSIGNED_TO_ORG"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_START_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OUTAGE_START_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_START_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OUTAGE_START_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CREATE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CREATE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CLOSE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CLOSE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="REOPEN_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.REOPEN_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="REOPEN_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.REOPEN_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_END_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OUTAGE_END_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_END_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OUTAGE_END_DATE_LOC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.INCIDENT_STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="INCIDENT_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.INCIDENT_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="INCIDENT_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SUBCATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SUBCATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ACTIVE_PROCESS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ACTIVE_PROCESS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PRIORITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PRIORITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.REFERENCE_NUMBER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="REFERENCE_NUMBER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.COMPLETION_CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="COMPLETION_CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.IMPACT_SCOPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="IMPACT_SCOPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.URGENCY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="URGENCY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ESCALATION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ESCALATION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROBLEM_NUMBER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROBLEM_NUMBER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SERVICE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.REQUESTED_BY_ORG" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="REQUESTED_BY_ORG" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ASSIGNED_TO_ORG" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ASSIGNED_TO_ORG" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OUTAGE_START_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OUTAGE_START_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OUTAGE_START_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OUTAGE_START_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CREATE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CREATE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CREATE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CREATE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CLOSE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CLOSE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CLOSE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CLOSE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.REOPEN_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="REOPEN_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.REOPEN_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="REOPEN_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OUTAGE_END_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OUTAGE_END_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OUTAGE_END_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OUTAGE_END_DATE_LOC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="INCIDENT_STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.INCIDENT_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="INCIDENT_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.INCIDENT_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="SUBCATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SUBCATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTIVE_PROCESS" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ACTIVE_PROCESS"/>
</DIAttributes>
</DIElement>
<DIElement name="PRIORITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PRIORITY"/>
</DIAttributes>
</DIElement>
<DIElement name="REFERENCE_NUMBER" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.REFERENCE_NUMBER"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLETION_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.COMPLETION_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="IMPACT_SCOPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.IMPACT_SCOPE"/>
</DIAttributes>
</DIElement>
<DIElement name="URGENCY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.URGENCY"/>
</DIAttributes>
</DIElement>
<DIElement name="ESCALATION" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ESCALATION"/>
</DIAttributes>
</DIElement>
<DIElement name="PROBLEM_NUMBER" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROBLEM_NUMBER"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SERVICE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="REQUESTED_BY_ORG" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.REQUESTED_BY_ORG"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSIGNED_TO_ORG" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ASSIGNED_TO_ORG"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_START_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OUTAGE_START_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_START_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OUTAGE_START_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CREATE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CREATE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CLOSE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CLOSE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="REOPEN_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.REOPEN_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="REOPEN_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.REOPEN_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_END_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OUTAGE_END_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_END_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OUTAGE_END_DATE_LOC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.INCIDENT_STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="INCIDENT_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.INCIDENT_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="INCIDENT_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SUBCATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SUBCATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ACTIVE_PROCESS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ACTIVE_PROCESS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PRIORITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PRIORITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.REFERENCE_NUMBER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="REFERENCE_NUMBER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.COMPLETION_CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="COMPLETION_CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.IMPACT_SCOPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="IMPACT_SCOPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.URGENCY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="URGENCY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ESCALATION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ESCALATION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROBLEM_NUMBER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROBLEM_NUMBER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SERVICE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.REQUESTED_BY_ORG" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="REQUESTED_BY_ORG" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ASSIGNED_TO_ORG" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ASSIGNED_TO_ORG" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OUTAGE_START_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OUTAGE_START_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OUTAGE_START_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OUTAGE_START_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CREATE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CREATE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CREATE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CREATE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CLOSE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CLOSE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CLOSE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CLOSE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.REOPEN_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="REOPEN_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.REOPEN_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="REOPEN_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OUTAGE_END_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OUTAGE_END_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OUTAGE_END_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OUTAGE_END_DATE_LOC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="INCIDENT_STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.INCIDENT_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="INCIDENT_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.INCIDENT_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="SUBCATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SUBCATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTIVE_PROCESS" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ACTIVE_PROCESS"/>
</DIAttributes>
</DIElement>
<DIElement name="PRIORITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PRIORITY"/>
</DIAttributes>
</DIElement>
<DIElement name="REFERENCE_NUMBER" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.REFERENCE_NUMBER"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLETION_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.COMPLETION_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="IMPACT_SCOPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.IMPACT_SCOPE"/>
</DIAttributes>
</DIElement>
<DIElement name="URGENCY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.URGENCY"/>
</DIAttributes>
</DIElement>
<DIElement name="ESCALATION" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ESCALATION"/>
</DIAttributes>
</DIElement>
<DIElement name="PROBLEM_NUMBER" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROBLEM_NUMBER"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SERVICE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="REQUESTED_BY_ORG" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.REQUESTED_BY_ORG"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSIGNED_TO_ORG" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ASSIGNED_TO_ORG"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_START_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OUTAGE_START_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_START_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OUTAGE_START_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CREATE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CREATE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CLOSE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CLOSE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="REOPEN_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.REOPEN_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="REOPEN_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.REOPEN_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_END_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OUTAGE_END_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_END_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OUTAGE_END_DATE_LOC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.INCIDENT_STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="INCIDENT_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.INCIDENT_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="INCIDENT_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SUBCATEGORY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SUBCATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ACTIVE_PROCESS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ACTIVE_PROCESS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PRIORITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PRIORITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.REFERENCE_NUMBER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="REFERENCE_NUMBER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.COMPLETION_CODE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="COMPLETION_CODE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.IMPACT_SCOPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="IMPACT_SCOPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.URGENCY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="URGENCY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ESCALATION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ESCALATION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROBLEM_NUMBER" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROBLEM_NUMBER" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SERVICE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.REQUESTED_BY_ORG" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="REQUESTED_BY_ORG" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ASSIGNED_TO_ORG" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ASSIGNED_TO_ORG" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OUTAGE_START_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OUTAGE_START_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OUTAGE_START_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OUTAGE_START_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CREATE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CREATE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CREATE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CREATE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CLOSE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CLOSE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CLOSE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CLOSE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.REOPEN_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="REOPEN_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.REOPEN_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="REOPEN_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OUTAGE_END_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OUTAGE_END_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OUTAGE_END_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OUTAGE_END_DATE_LOC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_INCIDENT_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_INCIDENT_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="INCIDENT_STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.INCIDENT_STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="INCIDENT_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.INCIDENT_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="CATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.CATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="SUBCATEGORY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.SUBCATEGORY"/>
</DIAttributes>
</DIElement>
<DIElement name="ACTIVE_PROCESS" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.ACTIVE_PROCESS"/>
</DIAttributes>
</DIElement>
<DIElement name="PRIORITY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.PRIORITY"/>
</DIAttributes>
</DIElement>
<DIElement name="REFERENCE_NUMBER" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.REFERENCE_NUMBER"/>
</DIAttributes>
</DIElement>
<DIElement name="COMPLETION_CODE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.COMPLETION_CODE"/>
</DIAttributes>
</DIElement>
<DIElement name="IMPACT_SCOPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.IMPACT_SCOPE"/>
</DIAttributes>
</DIElement>
<DIElement name="URGENCY" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.URGENCY"/>
</DIAttributes>
</DIElement>
<DIElement name="ESCALATION" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.ESCALATION"/>
</DIAttributes>
</DIElement>
<DIElement name="PROBLEM_NUMBER" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.PROBLEM_NUMBER"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_START_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.OUTAGE_START_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_START_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.OUTAGE_START_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.CREATE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="CREATE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.CREATE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.CLOSE_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="CLOSE_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.CLOSE_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.SERVICE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="REQUESTED_BY_ORG" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.REQUESTED_BY_ORG"/>
</DIAttributes>
</DIElement>
<DIElement name="REOPEN_TIME_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.REOPEN_TIME_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="REOPEN_TIME_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.REOPEN_TIME_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_END_DATE_UTC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.OUTAGE_END_DATE_UTC"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_END_DATE_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.OUTAGE_END_DATE_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="ASSIGNED_TO_ORG" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_INCIDENT_EXT.ASSIGNED_TO_ORG"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.INCIDENT_STATUS" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="INCIDENT_STATUS" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.INCIDENT_TYPE" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="INCIDENT_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.CATEGORY" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="CATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.SUBCATEGORY" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="SUBCATEGORY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.ACTIVE_PROCESS" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="ACTIVE_PROCESS" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.PRIORITY" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="PRIORITY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.REFERENCE_NUMBER" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="REFERENCE_NUMBER" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.COMPLETION_CODE" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="COMPLETION_CODE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.IMPACT_SCOPE" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="IMPACT_SCOPE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.URGENCY" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="URGENCY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.ESCALATION" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="ESCALATION" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.PROBLEM_NUMBER" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="PROBLEM_NUMBER" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.OUTAGE_START_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="OUTAGE_START_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.OUTAGE_START_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="OUTAGE_START_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.CREATE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="CREATE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.CREATE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="CREATE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.CLOSE_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="CLOSE_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.CLOSE_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="CLOSE_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="SERVICE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.REQUESTED_BY_ORG" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="REQUESTED_BY_ORG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.REOPEN_TIME_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="REOPEN_TIME_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.REOPEN_TIME_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="REOPEN_TIME_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.OUTAGE_END_DATE_UTC" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="OUTAGE_END_DATE_UTC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.OUTAGE_END_DATE_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="OUTAGE_END_DATE_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_INCIDENT_EXT.ASSIGNED_TO_ORG" >
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="ASSIGNED_TO_ORG" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_INCIDENT_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_INCIDENT_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_INCIDENT_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_INCIDENT_EXT" >
<DIOutputView name="ALT_INCIDENT_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_INCIDENT_TSNP" >
<DIInputView name="CASE_LOAD_FIRST_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>No</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>no</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_INCIDENT_TSNP.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CASE_LOAD_FIRST_RUN" value="$P_LATEST_WF_STATUS IS NULL and ($G_DEBUG_MODE &lt;&gt;1 or $G_DEBUG_MODE IS NULL) and ($G_TRACE_MODE &lt;&gt;1 or $G_TRACE_MODE IS NULL)"/>
<DIAttribute name="CASE_LOAD_RE_RUN" value="DEFAULT"/>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="CASE_LOAD"/>
</DIUIOptions>
<DIInputView name="Merge" />
<DISchema name="CASE_LOAD" >
</DISchema>
<DICase>
<DISwitch label="FIRST_RUN" outputView="CASE_LOAD_FIRST_RUN" isDefault="false">
<DIExpression isString="true" expr="((($P_LATEST_WF_STATUS IS  NULL ) AND&#xA;   (  (($G_DEBUG_MODE != 1) OR&#xA;   ($G_DEBUG_MODE IS  NULL ))  )) AND&#xA;   (  (($G_TRACE_MODE != 1) OR&#xA;   ($G_TRACE_MODE IS  NULL ))  ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_LATEST_WF_STATUS" />
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="RE_RUN" outputView="CASE_LOAD_RE_RUN" isDefault="true">
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_INCIDENT_TSNP" >
<DIInputView name="CASE_LOAD_RE_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_INCIDENT_TSNP.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_ALTPRJOBJECTIVE_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Tue, 15 Mar 2011 15:32:27"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_ALTPRJOBJECTIVE_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_ALTPRJOBJECTIVE_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTPRJOBJECTIVE_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_ALTPRJOBJECTIVE_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTPRJOBJECTIVE_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_ALTPRJOBJECTIVE_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_ALTPRJOBJECTIVE_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_ALTPRJOBJECTIVE_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Tue, 15 Mar 2011 15:32:27"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OBJECTIVE_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Display name for the Project Objective"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OBJECTIVE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="OBJECTIVE_PRIORITY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Priority of the Project Objective"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OBJECTIVE_PRIORITY"/>
</DIAttributes>
</DIElement>
<DIElement name="OBJECTIVE_STATE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Current state of the project objective"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OBJECTIVE_STATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OBJECTIVE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OBJECTIVE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OBJECTIVE_PRIORITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OBJECTIVE_PRIORITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OBJECTIVE_STATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OBJECTIVE_STATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OBJECTIVE_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Display name for the Project Objective"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OBJECTIVE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="OBJECTIVE_PRIORITY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Priority of the Project Objective"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OBJECTIVE_PRIORITY"/>
</DIAttributes>
</DIElement>
<DIElement name="OBJECTIVE_STATE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Current state of the project objective"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OBJECTIVE_STATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OBJECTIVE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OBJECTIVE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OBJECTIVE_PRIORITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OBJECTIVE_PRIORITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OBJECTIVE_STATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OBJECTIVE_STATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OBJECTIVE_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Display name for the Project Objective"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OBJECTIVE_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="OBJECTIVE_PRIORITY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Priority of the Project Objective"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OBJECTIVE_PRIORITY"/>
</DIAttributes>
</DIElement>
<DIElement name="OBJECTIVE_STATE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Current state of the project objective"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OBJECTIVE_STATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OBJECTIVE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OBJECTIVE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OBJECTIVE_PRIORITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OBJECTIVE_PRIORITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OBJECTIVE_STATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OBJECTIVE_STATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_PRJOBJECTIVE_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_PRJOBJECTIVE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PRJOBJECTIVE_EXT.MD_BUSINESS_KEY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PRJOBJECTIVE_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PRJOBJECTIVE_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="OBJECTIVE_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Display name for the Project Objective"/>
<DIAttribute name="ui_mapping_text" value="ALT_PRJOBJECTIVE_EXT.OBJECTIVE_NAME&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="OBJECTIVE_PRIORITY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Priority of the Project Objective"/>
<DIAttribute name="ui_mapping_text" value="ALT_PRJOBJECTIVE_EXT.OBJECTIVE_PRIORITY&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="OBJECTIVE_STATE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="Current state of the project objective"/>
<DIAttribute name="ui_mapping_text" value="ALT_PRJOBJECTIVE_EXT.OBJECTIVE_STATE&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_PRJOBJECTIVE_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PRJOBJECTIVE_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_PRJOBJECTIVE_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PRJOBJECTIVE_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_PRJOBJECTIVE_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PRJOBJECTIVE_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_PRJOBJECTIVE_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PRJOBJECTIVE_EXT.OBJECTIVE_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_PRJOBJECTIVE_EXT" column="OBJECTIVE_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PRJOBJECTIVE_EXT.OBJECTIVE_PRIORITY" >
<COLUMN_REFERENCE  qualifier1="ALT_PRJOBJECTIVE_EXT" column="OBJECTIVE_PRIORITY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PRJOBJECTIVE_EXT.OBJECTIVE_STATE" >
<COLUMN_REFERENCE  qualifier1="ALT_PRJOBJECTIVE_EXT" column="OBJECTIVE_STATE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_PRJOBJECTIVE_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_PRJOBJECTIVE_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_PRJOBJECTIVE_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_PRJOBJECTIVE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_PRJOBJECTIVE_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_PRJOBJECTIVE_EXT" >
<DIOutputView name="ALT_PRJOBJECTIVE_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_PRJOBJECTIVE_TSNP" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit>1000</bulk_ldr_rows_per_commit>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load/>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_PRJOBJECTIVE_TSNP.txt</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>0</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_ALTSERVICE_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_ALTSERVICE_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_MAX_WF_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_ALTSERVICE_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTSERVICE_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="&#xD;&#xA;#WORKFLOW NAME&#xD;&#xA;$L_WF_NAME = workflow_name();&#xD;&#xA;&#xD;&#xA;# GET MAX PROCESS_ID OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID&#xD;&#xA;$L_MAX_WF_PROCESS_ID=M_ICPS_GET_MAX_WF_PROCESS_ID($G_BATCH_ID,$L_WF_NAME,job_name( ));&#xD;&#xA;&#xD;&#xA;# GET LAST EXECUTION STATUS OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID, ACCORDING TO MAX PROCESS_ID&#xD;&#xA;$L_LATEST_WF_STATUS =M_ICPS_GET_WF_STATUS($L_MAX_WF_PROCESS_ID,$L_WF_NAME );&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_WF_NAME" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_MAX_WF_PROCESS_ID" >
<DIExpression isString="true" expr="m_icps_get_max_wf_process_id($G_BATCH_ID, $L_WF_NAME, job_name())" >
<FUNCTION_CALL name="m_icps_get_max_wf_process_id"  type="DI" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
<FUNCTION_CALL name="job_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LATEST_WF_STATUS" >
<DIExpression isString="true" expr="m_icps_get_wf_status($L_MAX_WF_PROCESS_ID, $L_WF_NAME)" >
<FUNCTION_CALL name="m_icps_get_wf_status"  type="DI" >
<VARIABLE_REFERENCE name="$L_MAX_WF_PROCESS_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DIIfStep typeId="2" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="If_condition" value=" $L_LATEST_WF_STATUS&lt;&gt;'SUCCESS'  or $L_LATEST_WF_STATUS is null"/>
<DIAttribute name="ui_display_name" value="ALT_ALTSERVICE_TSNP_CONDITION"/>
</DIUIOptions>
<DIExpression isString="true" expr="(($L_LATEST_WF_STATUS != 'SUCCESS') OR&#xA;   ($L_LATEST_WF_STATUS IS  NULL ))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_ALTSERVICE_TSNP_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_LATEST_WF_STATUS" >
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</DIExpression>
</DIParameterValues>
</DICallStep>
</DIIf>
<DIElse>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Print"/>
<DIAttribute name="ui_script_text" value="ETL_PRINT('PREVIOS RUN OF WORKFLOW &gt;&gt; '||$L_WF_NAME||' FOR BATCH ID &gt;&gt; '||$G_BATCH_ID||' HAS FINISHED SUCCESSFULLY!');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('PREVIOS RUN OF WORKFLOW &gt;&gt; ' || $L_WF_NAME) || ' FOR BATCH ID &gt;&gt; ') || $G_BATCH_ID) || ' HAS FINISHED SUCCESSFULLY!'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="PREVIOS RUN OF WORKFLOW &gt;&gt; " datatype="VARCHAR" size="27" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</CONCAT>
<CONSTANT value=" FOR BATCH ID &gt;&gt; " datatype="VARCHAR" size="17" />
</CONCAT>
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</CONCAT>
<CONSTANT value=" HAS FINISHED SUCCESSFULLY!" datatype="VARCHAR" size="27" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DIElse>
</DIIfStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTSERVICE_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_ALTSERVICE_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_ALTSERVICE_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_ALTSERVICE_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_STATE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SERVICE_STATE"/>
</DIAttributes>
</DIElement>
<DIElement name="DISPLAY_LABEL" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DISPLAY_LABEL"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MANAGER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SERVICE_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSINESS_CRITICALITY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.BUSINESS_CRITICALITY"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PARENT_SERVICE_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SERVICE_STATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SERVICE_STATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DISPLAY_LABEL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DISPLAY_LABEL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MANAGER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MANAGER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SERVICE_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SERVICE_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.BUSINESS_CRITICALITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="BUSINESS_CRITICALITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PARENT_SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PARENT_SERVICE_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_STATE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SERVICE_STATE"/>
</DIAttributes>
</DIElement>
<DIElement name="DISPLAY_LABEL" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DISPLAY_LABEL"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MANAGER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SERVICE_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSINESS_CRITICALITY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.BUSINESS_CRITICALITY"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PARENT_SERVICE_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SERVICE_STATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SERVICE_STATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DISPLAY_LABEL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DISPLAY_LABEL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MANAGER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MANAGER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SERVICE_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SERVICE_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.BUSINESS_CRITICALITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="BUSINESS_CRITICALITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PARENT_SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PARENT_SERVICE_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_STATE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SERVICE_STATE"/>
</DIAttributes>
</DIElement>
<DIElement name="DISPLAY_LABEL" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DISPLAY_LABEL"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MANAGER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SERVICE_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSINESS_CRITICALITY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.BUSINESS_CRITICALITY"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PARENT_SERVICE_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SERVICE_STATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SERVICE_STATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DISPLAY_LABEL" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DISPLAY_LABEL" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MANAGER_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MANAGER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SERVICE_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SERVICE_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.BUSINESS_CRITICALITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="BUSINESS_CRITICALITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PARENT_SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PARENT_SERVICE_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_ALTSERVICE_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_ALTSERVICE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICE_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICE_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICE_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICE_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICE_EXT.NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_STATE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICE_EXT.SERVICE_STATE"/>
</DIAttributes>
</DIElement>
<DIElement name="DISPLAY_LABEL" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICE_EXT.DISPLAY_LABEL"/>
</DIAttributes>
</DIElement>
<DIElement name="DESCRIPTION" datatype="VARCHAR" size="1024" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICE_EXT.DESCRIPTION"/>
</DIAttributes>
</DIElement>
<DIElement name="MANAGER_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICE_EXT.MANAGER_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICE_EXT.SERVICE_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="BUSINESS_CRITICALITY" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICE_EXT.BUSINESS_CRITICALITY"/>
</DIAttributes>
</DIElement>
<DIElement name="PARENT_SERVICE_NAME" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICE_EXT.PARENT_SERVICE_NAME"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICE_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICE_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICE_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICE_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICE_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICE_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICE_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICE_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICE_EXT.NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICE_EXT" column="NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICE_EXT.SERVICE_STATE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICE_EXT" column="SERVICE_STATE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICE_EXT.DISPLAY_LABEL" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICE_EXT" column="DISPLAY_LABEL" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICE_EXT.DESCRIPTION" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICE_EXT" column="DESCRIPTION" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICE_EXT.MANAGER_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICE_EXT" column="MANAGER_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICE_EXT.SERVICE_TYPE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICE_EXT" column="SERVICE_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICE_EXT.BUSINESS_CRITICALITY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICE_EXT" column="BUSINESS_CRITICALITY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICE_EXT.PARENT_SERVICE_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICE_EXT" column="PARENT_SERVICE_NAME" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_ALTSERVICE_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_ALTSERVICE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICE_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTSERVICE_EXT" >
<DIOutputView name="ALT_ALTSERVICE_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTSERVICE_TSNP" >
<DIInputView name="CASE_LOAD_FIRST_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
        <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
          <auto_correct_using_merge>Yes</auto_correct_using_merge>
          <bulk_ldr_all_rows/>
          <bulk_ldr_max_errors/>
          <bulk_ldr_rows_per_commit/>
          <enable_partitioning>no</enable_partitioning>
          <ignore_column_case>yes</ignore_column_case>
          <ignore_columns_null>No</ignore_columns_null>
          <ignore_columns_value/>
          <loader_auto_correct>no</loader_auto_correct>
          <loader_bulk_load>0</loader_bulk_load>
          <loader_compare_column>compare_by_name</loader_compare_column>
          <loader_delete_map/>
          <loader_drop_and_create_table>no</loader_drop_and_create_table>
          <loader_insert_map/>
          <loader_load_choice>append</loader_load_choice>
          <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
          <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_ALTSERVICE_TSNP.txt</loader_overflow_file>
          <loader_post_load1/>
          <loader_pre_load1/>
          <loader_quote_names>0</loader_quote_names>
          <loader_transactional>no</loader_transactional>
          <loader_transactional_order>0</loader_transactional_order>
          <loader_update_key_columns>no</loader_update_key_columns>
          <loader_update_map/>
          <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
          <loader_xact_size>1000</loader_xact_size>
          <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
          <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
          <overflow_file_format>Write data</overflow_file_format>
          <overriding_substitution_parameter_for_tablename/>
          <use_overflow_file>no</use_overflow_file>
          <use_unicode_varchar>no</use_unicode_varchar>
          <sql_text/>
        </LDRConfiguration>
      </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CASE_LOAD_FIRST_RUN" value="$P_LATEST_WF_STATUS IS NULL and ($G_DEBUG_MODE &lt;&gt;1 or $G_DEBUG_MODE IS NULL) and ($G_TRACE_MODE &lt;&gt;1 or $G_TRACE_MODE IS NULL)"/>
<DIAttribute name="CASE_LOAD_RE_RUN" value="DEFAULT"/>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="CASE_LOAD"/>
</DIUIOptions>
<DIInputView name="Merge" />
<DISchema name="CASE_LOAD" >
</DISchema>
<DICase>
<DISwitch label="FIRST_RUN" outputView="CASE_LOAD_FIRST_RUN" isDefault="false">
<DIExpression isString="true" expr="((($P_LATEST_WF_STATUS IS  NULL ) AND&#xA;   (  (($G_DEBUG_MODE != 1) OR&#xA;   ($G_DEBUG_MODE IS  NULL ))  )) AND&#xA;   (  (($G_TRACE_MODE != 1) OR&#xA;   ($G_TRACE_MODE IS  NULL ))  ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_LATEST_WF_STATUS" />
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="RE_RUN" outputView="CASE_LOAD_RE_RUN" isDefault="true">
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTSERVICE_TSNP" >
<DIInputView name="CASE_LOAD_RE_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
        <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
          <auto_correct_using_merge>Yes</auto_correct_using_merge>
          <bulk_ldr_all_rows/>
          <bulk_ldr_max_errors/>
          <bulk_ldr_rows_per_commit/>
          <enable_partitioning>no</enable_partitioning>
          <ignore_column_case>yes</ignore_column_case>
          <ignore_columns_null>no</ignore_columns_null>
          <ignore_columns_value/>
          <loader_auto_correct>yes</loader_auto_correct>
          <loader_bulk_load>0</loader_bulk_load>
          <loader_compare_column>compare_by_name</loader_compare_column>
          <loader_delete_map/>
          <loader_drop_and_create_table>no</loader_drop_and_create_table>
          <loader_insert_map/>
          <loader_load_choice>append</loader_load_choice>
          <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
          <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_ALTSERVICE_TSNP.txt</loader_overflow_file>
          <loader_post_load1/>
          <loader_pre_load1/>
          <loader_quote_names>0</loader_quote_names>
          <loader_transactional>no</loader_transactional>
          <loader_transactional_order>0</loader_transactional_order>
          <loader_update_key_columns>no</loader_update_key_columns>
          <loader_update_map/>
          <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
          <loader_xact_size>1000</loader_xact_size>
          <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
          <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
          <overflow_file_format>Write data</overflow_file_format>
          <overriding_substitution_parameter_for_tablename/>
          <use_overflow_file>no</use_overflow_file>
          <use_unicode_varchar>no</use_unicode_varchar>
          <sql_text/>
        </LDRConfiguration>
      </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_ALTSERVICESTATUS_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Thu, 24 Mar 2011 21:10:37"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_ALTSERVICESTATUS_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_ALTSERVICESTATUS_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTSERVICESTATUS_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_ALTSERVICESTATUS_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTSERVICESTATUS_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_ALTSERVICESTATUS_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_ALTSERVICESTATUS_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_ALTSERVICESTATUS_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Thu, 24 Mar 2011 21:10:37"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="DATE_RECORD_START"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_RECORD_START"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="DATE_STATUS_START"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_STATUS_START"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="DURATION"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DURATION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MEASURETYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="MEASURETYPE"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MEASURETYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="PERIOD"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PERIOD"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="SERVICE"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SERVICE"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="STATUS"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_RECORD_START" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_RECORD_START" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_STATUS_START" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_STATUS_START" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DURATION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DURATION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MEASURETYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MEASURETYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PERIOD" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PERIOD" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SERVICE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SERVICE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="DATE_RECORD_START"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_RECORD_START"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="DATE_STATUS_START"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_STATUS_START"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="DURATION"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DURATION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MEASURETYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="MEASURETYPE"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MEASURETYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="PERIOD"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PERIOD"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="SERVICE"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SERVICE"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="STATUS"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_RECORD_START" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_RECORD_START" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_STATUS_START" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_STATUS_START" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DURATION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DURATION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MEASURETYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MEASURETYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PERIOD" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PERIOD" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SERVICE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SERVICE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="DATE_RECORD_START"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_RECORD_START"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="DATE_STATUS_START"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_STATUS_START"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="DURATION"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DURATION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MEASURETYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="MEASURETYPE"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MEASURETYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="PERIOD"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PERIOD"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="SERVICE"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SERVICE"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="STATUS"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_RECORD_START" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_RECORD_START" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_STATUS_START" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_STATUS_START" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DURATION" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DURATION" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MEASURETYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MEASURETYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PERIOD" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PERIOD" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SERVICE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SERVICE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.STATUS" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="STATUS" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_ALTSERVICESTATUS_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_ALTSERVICESTATUS_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_RECORD_START" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="DATE_RECORD_START"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICESTATUS_EXT.DATE_RECORD_START"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_STATUS_START" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="DATE_STATUS_START"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICESTATUS_EXT.DATE_STATUS_START"/>
</DIAttributes>
</DIElement>
<DIElement name="DURATION" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="DURATION"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICESTATUS_EXT.DURATION"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICESTATUS_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICESTATUS_EXT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICESTATUS_EXT.MD_PF_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MEASURETYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="MEASURETYPE"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICESTATUS_EXT.MEASURETYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="PERIOD"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICESTATUS_EXT.PERIOD"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="SERVICE"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICESTATUS_EXT.SERVICE"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="STATUS"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICESTATUS_EXT.STATUS"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSERVICESTATUS_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICESTATUS_EXT.DATE_RECORD_START" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICESTATUS_EXT" column="DATE_RECORD_START" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICESTATUS_EXT.DATE_STATUS_START" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICESTATUS_EXT" column="DATE_STATUS_START" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICESTATUS_EXT.DURATION" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICESTATUS_EXT" column="DURATION" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICESTATUS_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICESTATUS_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICESTATUS_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICESTATUS_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICESTATUS_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICESTATUS_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICESTATUS_EXT.MEASURETYPE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICESTATUS_EXT" column="MEASURETYPE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICESTATUS_EXT.PERIOD" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICESTATUS_EXT" column="PERIOD" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICESTATUS_EXT.SERVICE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICESTATUS_EXT" column="SERVICE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICESTATUS_EXT.STATUS" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICESTATUS_EXT" column="STATUS" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSERVICESTATUS_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICESTATUS_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_ALTSERVICESTATUS_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_ALTSERVICESTATUS_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_ALTSERVICESTATUS_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTSERVICESTATUS_TSNP" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTSERVICESTATUS_EXT" >
<DIOutputView name="ALT_ALTSERVICESTATUS_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_ALTSLA_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_ALTSLA_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_MAX_WF_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_ALTSLA_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTSLA_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="&#xD;&#xA;#WORKFLOW NAME&#xD;&#xA;$L_WF_NAME = workflow_name();&#xD;&#xA;&#xD;&#xA;# GET MAX PROCESS_ID OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID&#xD;&#xA;$L_MAX_WF_PROCESS_ID=M_ICPS_GET_MAX_WF_PROCESS_ID($G_BATCH_ID,$L_WF_NAME,job_name( ));&#xD;&#xA;&#xD;&#xA;# GET LAST EXECUTION STATUS OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID, ACCORDING TO MAX PROCESS_ID&#xD;&#xA;$L_LATEST_WF_STATUS =M_ICPS_GET_WF_STATUS($L_MAX_WF_PROCESS_ID,$L_WF_NAME );&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_WF_NAME" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_MAX_WF_PROCESS_ID" >
<DIExpression isString="true" expr="m_icps_get_max_wf_process_id($G_BATCH_ID, $L_WF_NAME, job_name())" >
<FUNCTION_CALL name="m_icps_get_max_wf_process_id"  type="DI" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
<FUNCTION_CALL name="job_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LATEST_WF_STATUS" >
<DIExpression isString="true" expr="m_icps_get_wf_status($L_MAX_WF_PROCESS_ID, $L_WF_NAME)" >
<FUNCTION_CALL name="m_icps_get_wf_status"  type="DI" >
<VARIABLE_REFERENCE name="$L_MAX_WF_PROCESS_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DIIfStep typeId="2" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="If_condition" value=" $L_LATEST_WF_STATUS&lt;&gt;'SUCCESS'  or $L_LATEST_WF_STATUS is null"/>
<DIAttribute name="ui_display_name" value="ALT_ALTSLA_TSNP_CONDITION"/>
</DIUIOptions>
<DIExpression isString="true" expr="(($L_LATEST_WF_STATUS != 'SUCCESS') OR&#xA;   ($L_LATEST_WF_STATUS IS  NULL ))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_ALTSLA_TSNP_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_LATEST_WF_STATUS" >
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</DIExpression>
</DIParameterValues>
</DICallStep>
</DIIf>
<DIElse>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Print"/>
<DIAttribute name="ui_script_text" value="ETL_PRINT('PREVIOS RUN OF WORKFLOW &gt;&gt; '||$L_WF_NAME||' FOR BATCH ID &gt;&gt; '||$G_BATCH_ID||' HAS FINISHED SUCCESSFULLY!');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('PREVIOS RUN OF WORKFLOW &gt;&gt; ' || $L_WF_NAME) || ' FOR BATCH ID &gt;&gt; ') || $G_BATCH_ID) || ' HAS FINISHED SUCCESSFULLY!'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="PREVIOS RUN OF WORKFLOW &gt;&gt; " datatype="VARCHAR" size="27" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</CONCAT>
<CONSTANT value=" FOR BATCH ID &gt;&gt; " datatype="VARCHAR" size="17" />
</CONCAT>
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</CONCAT>
<CONSTANT value=" HAS FINISHED SUCCESSFULLY!" datatype="VARCHAR" size="27" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DIElse>
</DIIfStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTSLA_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_ALTSLA_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_ALTSLA_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_ALTSLA_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="SLA_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SLA_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SLA_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SLA_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="SLA_STATE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SLA_STATE"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.DATE_START_LOC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SLA_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SLA_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SLA_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SLA_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SLA_STATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SLA_STATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_END_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.DATE_START_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="DATE_START_LOC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="SLA_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SLA_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SLA_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SLA_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="SLA_STATE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SLA_STATE"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.DATE_START_LOC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SLA_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SLA_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SLA_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SLA_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SLA_STATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SLA_STATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_END_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.DATE_START_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="DATE_START_LOC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="SLA_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SLA_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SLA_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SLA_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="SLA_STATE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SLA_STATE"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.DATE_START_LOC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SLA_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SLA_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SLA_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SLA_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SLA_STATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SLA_STATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_END_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.DATE_START_LOC" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="DATE_START_LOC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_ALTSLA_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_ALTSLA_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSLA_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSLA_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSLA_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSLA_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="SLA_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSLA_EXT.SLA_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SLA_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSLA_EXT.SLA_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="SLA_STATE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSLA_EXT.SLA_STATE"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_END_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSLA_EXT.DATE_END_LOC"/>
</DIAttributes>
</DIElement>
<DIElement name="DATE_START_LOC" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSLA_EXT.DATE_START_LOC"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSLA_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSLA_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSLA_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSLA_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSLA_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSLA_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSLA_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSLA_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSLA_EXT.SLA_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSLA_EXT" column="SLA_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSLA_EXT.SLA_TYPE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSLA_EXT" column="SLA_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSLA_EXT.SLA_STATE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSLA_EXT" column="SLA_STATE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSLA_EXT.DATE_END_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSLA_EXT" column="DATE_END_LOC" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSLA_EXT.DATE_START_LOC" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSLA_EXT" column="DATE_START_LOC" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_ALTSLA_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_ALTSLA_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_ALTSLA_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTSLA_EXT" >
<DIOutputView name="ALT_ALTSLA_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTSLA_TSNP" >
<DIInputView name="CASE_LOAD_FIRST_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
          <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
            <auto_correct_using_merge>Yes</auto_correct_using_merge>
            <bulk_ldr_all_rows/>
            <bulk_ldr_max_errors/>
            <bulk_ldr_rows_per_commit/>
            <enable_partitioning>no</enable_partitioning>
            <ignore_column_case>yes</ignore_column_case>
            <ignore_columns_null>No</ignore_columns_null>
            <ignore_columns_value/>
            <loader_auto_correct>no</loader_auto_correct>
            <loader_bulk_load>0</loader_bulk_load>
            <loader_compare_column>compare_by_name</loader_compare_column>
            <loader_delete_map/>
            <loader_drop_and_create_table>no</loader_drop_and_create_table>
            <loader_insert_map/>
            <loader_load_choice>append</loader_load_choice>
            <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
            <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_ALTSLA_TSNP.txt</loader_overflow_file>
            <loader_post_load1/>
            <loader_pre_load1/>
            <loader_quote_names>0</loader_quote_names>
            <loader_transactional>no</loader_transactional>
            <loader_transactional_order>0</loader_transactional_order>
            <loader_update_key_columns>no</loader_update_key_columns>
            <loader_update_map/>
            <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
            <loader_xact_size>1000</loader_xact_size>
            <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
            <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
            <overflow_file_format>Write data</overflow_file_format>
            <overriding_substitution_parameter_for_tablename/>
            <use_overflow_file>no</use_overflow_file>
            <use_unicode_varchar>no</use_unicode_varchar>
            <sql_text/>
          </LDRConfiguration>
        </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CASE_LOAD_FIRST_RUN" value="$P_LATEST_WF_STATUS IS NULL and ($G_DEBUG_MODE &lt;&gt;1 or $G_DEBUG_MODE IS NULL) and ($G_TRACE_MODE &lt;&gt;1 or $G_TRACE_MODE IS NULL)"/>
<DIAttribute name="CASE_LOAD_RE_RUN" value="DEFAULT"/>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="CASE_LOAD"/>
</DIUIOptions>
<DIInputView name="Merge" />
<DISchema name="CASE_LOAD" >
</DISchema>
<DICase>
<DISwitch label="FIRST_RUN" outputView="CASE_LOAD_FIRST_RUN" isDefault="false">
<DIExpression isString="true" expr="((($P_LATEST_WF_STATUS IS  NULL ) AND&#xA;   (  (($G_DEBUG_MODE != 1) OR&#xA;   ($G_DEBUG_MODE IS  NULL ))  )) AND&#xA;   (  (($G_TRACE_MODE != 1) OR&#xA;   ($G_TRACE_MODE IS  NULL ))  ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_LATEST_WF_STATUS" />
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="RE_RUN" outputView="CASE_LOAD_RE_RUN" isDefault="true">
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTSLA_TSNP" >
<DIInputView name="CASE_LOAD_RE_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
          <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
            <auto_correct_using_merge>Yes</auto_correct_using_merge>
            <bulk_ldr_all_rows/>
            <bulk_ldr_max_errors/>
            <bulk_ldr_rows_per_commit/>
            <enable_partitioning>no</enable_partitioning>
            <ignore_column_case>yes</ignore_column_case>
            <ignore_columns_null>no</ignore_columns_null>
            <ignore_columns_value/>
            <loader_auto_correct>yes</loader_auto_correct>
            <loader_bulk_load>0</loader_bulk_load>
            <loader_compare_column>compare_by_name</loader_compare_column>
            <loader_delete_map/>
            <loader_drop_and_create_table>no</loader_drop_and_create_table>
            <loader_insert_map/>
            <loader_load_choice>append</loader_load_choice>
            <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
            <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_ALTSLA_TSNP.txt</loader_overflow_file>
            <loader_post_load1/>
            <loader_pre_load1/>
            <loader_quote_names>0</loader_quote_names>
            <loader_transactional>no</loader_transactional>
            <loader_transactional_order>0</loader_transactional_order>
            <loader_update_key_columns>no</loader_update_key_columns>
            <loader_update_map/>
            <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
            <loader_xact_size>1000</loader_xact_size>
            <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
            <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
            <overflow_file_format>Write data</overflow_file_format>
            <overriding_substitution_parameter_for_tablename/>
            <use_overflow_file>no</use_overflow_file>
            <use_unicode_varchar>no</use_unicode_varchar>
            <sql_text/>
          </LDRConfiguration>
        </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_SLAOUTAGE_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 14 Mar 2011 15:55:53"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_SLAOUTAGE_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_SLAOUTAGE_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_SLAOUTAGE_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_SLAOUTAGE_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_SLAOUTAGE_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_SLAOUTAGE_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_SLAOUTAGE_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_SLAOUTAGE_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 14 Mar 2011 15:55:53"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="EXPECTED_UPTIME" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount of Expected SLA uptime"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.EXPECTED_UPTIME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_COUNT" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Number of outages"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OUTAGE_COUNT"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Period Start Date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PERIOD_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIODICITY" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value="Applicable calendar"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PERIODICITY"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to Service"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SLA_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to Service Level Agreement"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SLA_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="TRACKING_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="SLA Type can be Reported or Monitored"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.TRACKING_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="UNPLANNED_DOWNTIME" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount of unplanned downtime or outage"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.UNPLANNED_DOWNTIME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.EXPECTED_UPTIME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="EXPECTED_UPTIME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OUTAGE_COUNT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OUTAGE_COUNT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PERIOD_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PERIOD_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PERIODICITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PERIODICITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SLA_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SLA_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.TRACKING_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="TRACKING_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.UNPLANNED_DOWNTIME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="UNPLANNED_DOWNTIME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="EXPECTED_UPTIME" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount of Expected SLA uptime"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.EXPECTED_UPTIME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_COUNT" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Number of outages"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OUTAGE_COUNT"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Period Start Date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PERIOD_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIODICITY" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value="Applicable calendar"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PERIODICITY"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to Service"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SLA_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to Service Level Agreement"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SLA_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="TRACKING_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="SLA Type can be Reported or Monitored"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.TRACKING_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="UNPLANNED_DOWNTIME" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount of unplanned downtime or outage"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.UNPLANNED_DOWNTIME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.EXPECTED_UPTIME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="EXPECTED_UPTIME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OUTAGE_COUNT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OUTAGE_COUNT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PERIOD_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PERIOD_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PERIODICITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PERIODICITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SLA_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SLA_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.TRACKING_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="TRACKING_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.UNPLANNED_DOWNTIME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="UNPLANNED_DOWNTIME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="EXPECTED_UPTIME" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount of Expected SLA uptime"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.EXPECTED_UPTIME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_COUNT" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Number of outages"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OUTAGE_COUNT"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Period Start Date"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PERIOD_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIODICITY" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value="Applicable calendar"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PERIODICITY"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to Service"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SLA_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to Service Level Agreement"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SLA_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="TRACKING_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="SLA Type can be Reported or Monitored"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.TRACKING_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="UNPLANNED_DOWNTIME" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount of unplanned downtime or outage"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.UNPLANNED_DOWNTIME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.EXPECTED_UPTIME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="EXPECTED_UPTIME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OUTAGE_COUNT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OUTAGE_COUNT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PERIOD_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PERIOD_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PERIODICITY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PERIODICITY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SLA_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SLA_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.TRACKING_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="TRACKING_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.UNPLANNED_DOWNTIME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="UNPLANNED_DOWNTIME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_SLAOUTAGE_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_SLAOUTAGE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="EXPECTED_UPTIME" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount of Expected SLA uptime"/>
<DIAttribute name="ui_mapping_text" value="ALT_SLAOUTAGE_EXT.EXPECTED_UPTIME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_SLAOUTAGE_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_SLAOUTAGE_EXT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_SLAOUTAGE_EXT.MD_PF_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="OUTAGE_COUNT" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value="Number of outages"/>
<DIAttribute name="ui_mapping_text" value="ALT_SLAOUTAGE_EXT.OUTAGE_COUNT"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Period Start Date"/>
<DIAttribute name="ui_mapping_text" value="ALT_SLAOUTAGE_EXT.PERIOD_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIODICITY" datatype="VARCHAR" size="20" >
<DIAttributes>
<DIAttribute name="Description" value="Applicable calendar"/>
<DIAttribute name="ui_mapping_text" value="ALT_SLAOUTAGE_EXT.PERIODICITY"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to Service"/>
<DIAttribute name="ui_mapping_text" value="ALT_SLAOUTAGE_EXT.SERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SLA_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to Service Level Agreement"/>
<DIAttribute name="ui_mapping_text" value="ALT_SLAOUTAGE_EXT.SLA_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="TRACKING_TYPE" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value="SLA Type can be Reported or Monitored"/>
<DIAttribute name="ui_mapping_text" value="ALT_SLAOUTAGE_EXT.TRACKING_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="UNPLANNED_DOWNTIME" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Amount of unplanned downtime or outage"/>
<DIAttribute name="ui_mapping_text" value="ALT_SLAOUTAGE_EXT.UNPLANNED_DOWNTIME"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_SLAOUTAGE_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLAOUTAGE_EXT.EXPECTED_UPTIME" >
<COLUMN_REFERENCE  qualifier1="ALT_SLAOUTAGE_EXT" column="EXPECTED_UPTIME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLAOUTAGE_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_SLAOUTAGE_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLAOUTAGE_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_SLAOUTAGE_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLAOUTAGE_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_SLAOUTAGE_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLAOUTAGE_EXT.OUTAGE_COUNT" >
<COLUMN_REFERENCE  qualifier1="ALT_SLAOUTAGE_EXT" column="OUTAGE_COUNT" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLAOUTAGE_EXT.PERIOD_START_DATE" >
<COLUMN_REFERENCE  qualifier1="ALT_SLAOUTAGE_EXT" column="PERIOD_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLAOUTAGE_EXT.PERIODICITY" >
<COLUMN_REFERENCE  qualifier1="ALT_SLAOUTAGE_EXT" column="PERIODICITY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLAOUTAGE_EXT.SERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_SLAOUTAGE_EXT" column="SERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLAOUTAGE_EXT.SLA_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_SLAOUTAGE_EXT" column="SLA_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLAOUTAGE_EXT.TRACKING_TYPE" >
<COLUMN_REFERENCE  qualifier1="ALT_SLAOUTAGE_EXT" column="TRACKING_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLAOUTAGE_EXT.UNPLANNED_DOWNTIME" >
<COLUMN_REFERENCE  qualifier1="ALT_SLAOUTAGE_EXT" column="UNPLANNED_DOWNTIME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLAOUTAGE_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_SLAOUTAGE_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_SLAOUTAGE_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_SLAOUTAGE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_SLAOUTAGE_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_SLAOUTAGE_TSNP" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>write_data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_SLAOUTAGE_EXT" >
<DIOutputView name="ALT_SLAOUTAGE_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_SLASTATUS_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_SLASTATUS_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DIVariables>
<DIElement paramType="LOCAL" name="$L_WF_NAME" datatype="VARCHAR" size="200" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_MAX_WF_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
</DIElement>
<DIElement paramType="LOCAL" name="$L_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIVariables>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_SLASTATUS_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_SLASTATUS_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="&#xD;&#xA;#WORKFLOW NAME&#xD;&#xA;$L_WF_NAME = workflow_name();&#xD;&#xA;&#xD;&#xA;# GET MAX PROCESS_ID OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID&#xD;&#xA;$L_MAX_WF_PROCESS_ID=M_ICPS_GET_MAX_WF_PROCESS_ID($G_BATCH_ID,$L_WF_NAME,job_name( ));&#xD;&#xA;&#xD;&#xA;# GET LAST EXECUTION STATUS OF THIS WORKFLOW IN THE SCOPE OF RUNNING BATCH_ID, ACCORDING TO MAX PROCESS_ID&#xD;&#xA;$L_LATEST_WF_STATUS =M_ICPS_GET_WF_STATUS($L_MAX_WF_PROCESS_ID,$L_WF_NAME );&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);"/>
</DIUIOptions>
<DIAssignmentStep typeId="12" variable="$L_WF_NAME" >
<DIExpression isString="true" expr="workflow_name()" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_MAX_WF_PROCESS_ID" >
<DIExpression isString="true" expr="m_icps_get_max_wf_process_id($G_BATCH_ID, $L_WF_NAME, job_name())" >
<FUNCTION_CALL name="m_icps_get_max_wf_process_id"  type="DI" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
<FUNCTION_CALL name="job_name"  type="DI" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIAssignmentStep typeId="12" variable="$L_LATEST_WF_STATUS" >
<DIExpression isString="true" expr="m_icps_get_wf_status($L_MAX_WF_PROCESS_ID, $L_WF_NAME)" >
<FUNCTION_CALL name="m_icps_get_wf_status"  type="DI" >
<VARIABLE_REFERENCE name="$L_MAX_WF_PROCESS_ID" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</FUNCTION_CALL>
</DIExpression>
</DIAssignmentStep>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DIIfStep typeId="2" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="If_condition" value=" $L_LATEST_WF_STATUS&lt;&gt;'SUCCESS'  or $L_LATEST_WF_STATUS is null"/>
<DIAttribute name="ui_display_name" value="ALT_SLASTATUS_TSNP_CONDITION"/>
</DIUIOptions>
<DIExpression isString="true" expr="(($L_LATEST_WF_STATUS != 'SUCCESS') OR&#xA;   ($L_LATEST_WF_STATUS IS  NULL ))" >
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
<CONSTANT value="SUCCESS" datatype="VARCHAR" size="7" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
<DIIf>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_SLASTATUS_TSNP_DF" >
<DIUIOptions>
<DIAttribute name="ParmDefaulted_01" value="FALSE"/>
</DIUIOptions>
<DIParameterValues>
<DIExpression isString="true" expr="$L_LATEST_WF_STATUS" >
<VARIABLE_REFERENCE name="$L_LATEST_WF_STATUS" />
</DIExpression>
</DIParameterValues>
</DICallStep>
</DIIf>
<DIElse>
<DIScript>
<DIUIOptions>
<DIAttribute name="ui_display_name" value="Print"/>
<DIAttribute name="ui_script_text" value="ETL_PRINT('PREVIOS RUN OF WORKFLOW &gt;&gt; '||$L_WF_NAME||' FOR BATCH ID &gt;&gt; '||$G_BATCH_ID||' HAS FINISHED SUCCESSFULLY!');"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="etl_print((((('PREVIOS RUN OF WORKFLOW &gt;&gt; ' || $L_WF_NAME) || ' FOR BATCH ID &gt;&gt; ') || $G_BATCH_ID) || ' HAS FINISHED SUCCESSFULLY!'))" >
<FUNCTION_CALL name="etl_print"  type="DI" >
<CONCAT>
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="PREVIOS RUN OF WORKFLOW &gt;&gt; " datatype="VARCHAR" size="27" />
<VARIABLE_REFERENCE name="$L_WF_NAME" />
</CONCAT>
<CONSTANT value=" FOR BATCH ID &gt;&gt; " datatype="VARCHAR" size="17" />
</CONCAT>
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</CONCAT>
<CONSTANT value=" HAS FINISHED SUCCESSFULLY!" datatype="VARCHAR" size="27" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DIElse>
</DIIfStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_SLASTATUS_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_SLASTATUS_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_SLASTATUS_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_SLASTATUS_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version $)"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Mon, 25 Apr 2011 11:34:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DIParameters>
<DIElement paramType="IN" name="$P_LATEST_WF_STATUS" datatype="VARCHAR" size="200" >
</DIElement>
</DIParameters>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="IS_OPEN" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.IS_OPEN"/>
</DIAttributes>
</DIElement>
<DIElement name="OBJ_COUNT" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OBJ_COUNT"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.STATUS_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SLA_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SLA_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CONSUMER_ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CONSUMER_ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OBJ_MET_COUNT" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.OBJ_MET_COUNT"/>
</DIAttributes>
</DIElement>
<DIElement name="MEASURETYPE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MEASURETYPE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROVIDER_ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROVIDER_ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PERIOD_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="CALENDAR_PERIOD" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.CALENDAR_PERIOD"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.IS_OPEN" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="IS_OPEN" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OBJ_COUNT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OBJ_COUNT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.STATUS_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="STATUS_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SLA_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SLA_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CONSUMER_ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CONSUMER_ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.OBJ_MET_COUNT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="OBJ_MET_COUNT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MEASURETYPE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MEASURETYPE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROVIDER_ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROVIDER_ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PERIOD_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PERIOD_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.CALENDAR_PERIOD" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="CALENDAR_PERIOD" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="IS_OPEN" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.IS_OPEN"/>
</DIAttributes>
</DIElement>
<DIElement name="OBJ_COUNT" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OBJ_COUNT"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.STATUS_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SLA_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SLA_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CONSUMER_ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CONSUMER_ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OBJ_MET_COUNT" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.OBJ_MET_COUNT"/>
</DIAttributes>
</DIElement>
<DIElement name="MEASURETYPE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MEASURETYPE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROVIDER_ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROVIDER_ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PERIOD_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="CALENDAR_PERIOD" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.CALENDAR_PERIOD"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.IS_OPEN" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="IS_OPEN" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OBJ_COUNT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OBJ_COUNT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.STATUS_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="STATUS_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SLA_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SLA_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CONSUMER_ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CONSUMER_ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.OBJ_MET_COUNT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="OBJ_MET_COUNT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MEASURETYPE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MEASURETYPE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROVIDER_ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROVIDER_ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PERIOD_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PERIOD_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.CALENDAR_PERIOD" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="CALENDAR_PERIOD" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="IS_OPEN" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.IS_OPEN"/>
</DIAttributes>
</DIElement>
<DIElement name="OBJ_COUNT" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OBJ_COUNT"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.STATUS_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SLA_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SLA_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CONSUMER_ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CONSUMER_ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OBJ_MET_COUNT" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.OBJ_MET_COUNT"/>
</DIAttributes>
</DIElement>
<DIElement name="MEASURETYPE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MEASURETYPE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROVIDER_ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROVIDER_ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PERIOD_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="CALENDAR_PERIOD" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.CALENDAR_PERIOD"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.IS_OPEN" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="IS_OPEN" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OBJ_COUNT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OBJ_COUNT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.STATUS_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="STATUS_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SLA_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SLA_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CONSUMER_ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CONSUMER_ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.OBJ_MET_COUNT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="OBJ_MET_COUNT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MEASURETYPE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MEASURETYPE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROVIDER_ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROVIDER_ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PERIOD_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PERIOD_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.CALENDAR_PERIOD" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="CALENDAR_PERIOD" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_SLASTATUS_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_SLASTATUS_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_SLASTATUS_EXT.MD_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_SLASTATUS_EXT.MD_PF_FLAG&#xD;&#xA; &#xD;&#xA;"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="255" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_SLASTATUS_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="10" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_SLASTATUS_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="IS_OPEN" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_SLASTATUS_EXT.IS_OPEN"/>
</DIAttributes>
</DIElement>
<DIElement name="OBJ_COUNT" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_SLASTATUS_EXT.OBJ_COUNT"/>
</DIAttributes>
</DIElement>
<DIElement name="STATUS_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_SLASTATUS_EXT.STATUS_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SLA_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_SLASTATUS_EXT.SLA_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="CONSUMER_ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_SLASTATUS_EXT.CONSUMER_ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="OBJ_MET_COUNT" datatype="DECIMAL" precision="16" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_SLASTATUS_EXT.OBJ_MET_COUNT"/>
</DIAttributes>
</DIElement>
<DIElement name="MEASURETYPE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_SLASTATUS_EXT.MEASURETYPE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_SLASTATUS_EXT.SERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROVIDER_ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_SLASTATUS_EXT.PROVIDER_ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_SLASTATUS_EXT.PERIOD_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="CALENDAR_PERIOD" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_SLASTATUS_EXT.CALENDAR_PERIOD"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLASTATUS_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_SLASTATUS_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLASTATUS_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_SLASTATUS_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLASTATUS_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_SLASTATUS_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLASTATUS_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_SLASTATUS_EXT" column="MD_CP_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLASTATUS_EXT.IS_OPEN" >
<COLUMN_REFERENCE  qualifier1="ALT_SLASTATUS_EXT" column="IS_OPEN" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLASTATUS_EXT.OBJ_COUNT" >
<COLUMN_REFERENCE  qualifier1="ALT_SLASTATUS_EXT" column="OBJ_COUNT" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLASTATUS_EXT.STATUS_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_SLASTATUS_EXT" column="STATUS_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLASTATUS_EXT.SLA_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_SLASTATUS_EXT" column="SLA_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLASTATUS_EXT.CONSUMER_ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_SLASTATUS_EXT" column="CONSUMER_ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLASTATUS_EXT.OBJ_MET_COUNT" >
<COLUMN_REFERENCE  qualifier1="ALT_SLASTATUS_EXT" column="OBJ_MET_COUNT" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLASTATUS_EXT.MEASURETYPE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_SLASTATUS_EXT" column="MEASURETYPE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLASTATUS_EXT.SERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_SLASTATUS_EXT" column="SERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLASTATUS_EXT.PROVIDER_ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_SLASTATUS_EXT" column="PROVIDER_ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLASTATUS_EXT.PERIOD_START_DATE" >
<COLUMN_REFERENCE  qualifier1="ALT_SLASTATUS_EXT" column="PERIOD_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_SLASTATUS_EXT.CALENDAR_PERIOD" >
<COLUMN_REFERENCE  qualifier1="ALT_SLASTATUS_EXT" column="CALENDAR_PERIOD" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_SLASTATUS_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_SLASTATUS_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_SLASTATUS_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_SLASTATUS_EXT" >
<DIOutputView name="ALT_SLASTATUS_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_SLASTATUS_TSNP" >
<DIInputView name="CASE_LOAD_FIRST_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
        <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
          <auto_correct_using_merge>Yes</auto_correct_using_merge>
          <bulk_ldr_all_rows/>
          <bulk_ldr_max_errors/>
          <bulk_ldr_rows_per_commit/>
          <enable_partitioning>no</enable_partitioning>
          <ignore_column_case>yes</ignore_column_case>
          <ignore_columns_null>No</ignore_columns_null>
          <ignore_columns_value/>
          <loader_auto_correct>no</loader_auto_correct>
          <loader_bulk_load>0</loader_bulk_load>
          <loader_compare_column>compare_by_name</loader_compare_column>
          <loader_delete_map/>
          <loader_drop_and_create_table>no</loader_drop_and_create_table>
          <loader_insert_map/>
          <loader_load_choice>append</loader_load_choice>
          <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
          <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_SLASTATUS_TSNP.txt</loader_overflow_file>
          <loader_post_load1/>
          <loader_pre_load1/>
          <loader_quote_names>0</loader_quote_names>
          <loader_transactional>no</loader_transactional>
          <loader_transactional_order>0</loader_transactional_order>
          <loader_update_key_columns>no</loader_update_key_columns>
          <loader_update_map/>
          <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
          <loader_xact_size>1000</loader_xact_size>
          <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
          <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
          <overflow_file_format>Write data</overflow_file_format>
          <overriding_substitution_parameter_for_tablename/>
          <use_overflow_file>no</use_overflow_file>
          <use_unicode_varchar>no</use_unicode_varchar>
          <sql_text/>
        </LDRConfiguration>
      </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>


<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CASE_LOAD_FIRST_RUN" value="$P_LATEST_WF_STATUS IS NULL and ($G_DEBUG_MODE &lt;&gt;1 or $G_DEBUG_MODE IS NULL) and ($G_TRACE_MODE &lt;&gt;1 or $G_TRACE_MODE IS NULL)"/>
<DIAttribute name="CASE_LOAD_RE_RUN" value="DEFAULT"/>
<DIAttribute name="ui_acta_from_schema_0" value="Merge"/>
<DIAttribute name="ui_display_name" value="CASE_LOAD"/>
</DIUIOptions>
<DIInputView name="Merge" />
<DISchema name="CASE_LOAD" >
</DISchema>
<DICase>
<DISwitch label="FIRST_RUN" outputView="CASE_LOAD_FIRST_RUN" isDefault="false">
<DIExpression isString="true" expr="((($P_LATEST_WF_STATUS IS  NULL ) AND&#xA;   (  (($G_DEBUG_MODE != 1) OR&#xA;   ($G_DEBUG_MODE IS  NULL ))  )) AND&#xA;   (  (($G_TRACE_MODE != 1) OR&#xA;   ($G_TRACE_MODE IS  NULL ))  ))" >
<LOGICAL_OP op="AND">
<LOGICAL_OP op="AND">
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$P_LATEST_WF_STATUS" />
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_DEBUG_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
<LOGICAL_OP op="OR">
<LOGICAL_OP op="NE">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
<CONSTANT value="1" datatype="INT" />
</LOGICAL_OP>
<LOGICAL_OP op="IS NULL">
<VARIABLE_REFERENCE name="$G_TRACE_MODE" />
</LOGICAL_OP>
</LOGICAL_OP>
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="RE_RUN" outputView="CASE_LOAD_RE_RUN" isDefault="true">
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_SLASTATUS_TSNP" >
<DIInputView name="CASE_LOAD_RE_RUN"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
        <LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
          <auto_correct_using_merge>Yes</auto_correct_using_merge>
          <bulk_ldr_all_rows/>
          <bulk_ldr_max_errors/>
          <bulk_ldr_rows_per_commit/>
          <enable_partitioning>no</enable_partitioning>
          <ignore_column_case>yes</ignore_column_case>
          <ignore_columns_null>no</ignore_columns_null>
          <ignore_columns_value/>
          <loader_auto_correct>yes</loader_auto_correct>
          <loader_bulk_load>0</loader_bulk_load>
          <loader_compare_column>compare_by_name</loader_compare_column>
          <loader_delete_map/>
          <loader_drop_and_create_table>no</loader_drop_and_create_table>
          <loader_insert_map/>
          <loader_load_choice>append</loader_load_choice>
          <loader_num_parallel_loaders>1</loader_num_parallel_loaders>
          <loader_overflow_file>SRCSTAGING_DS_SRCSTAGING_ALIAS_ALT_SLASTATUS_TSNP.txt</loader_overflow_file>
          <loader_post_load1/>
          <loader_pre_load1/>
          <loader_quote_names>0</loader_quote_names>
          <loader_transactional>no</loader_transactional>
          <loader_transactional_order>0</loader_transactional_order>
          <loader_update_key_columns>no</loader_update_key_columns>
          <loader_update_map/>
          <loader_use_user_defined_keys>no</loader_use_user_defined_keys>
          <loader_xact_size>1000</loader_xact_size>
          <mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
          <mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
          <overflow_file_format>Write data</overflow_file_format>
          <overriding_substitution_parameter_for_tablename/>
          <use_overflow_file>no</use_overflow_file>
          <use_unicode_varchar>no</use_unicode_varchar>
          <sql_text/>
        </LDRConfiguration>
      </LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_ALTSURVEY_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Thu, 31 Mar 2011 14:29:58"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_ALTSURVEY_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_ALTSURVEY_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTSURVEY_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_ALTSURVEY_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTSURVEY_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_ALTSURVEY_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_ALTSURVEY_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_ALTSURVEY_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Thu, 31 Mar 2011 14:29:58"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="FULL_MARK_SCORE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.FULL_MARK_SCORE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SURVEY_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SURVEY_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SURVEY_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SURVEY_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="SURVEY_TYPE" datatype="VARCHAR" size="32" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SURVEY_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.FULL_MARK_SCORE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="FULL_MARK_SCORE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SURVEY_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SURVEY_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SURVEY_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SURVEY_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SURVEY_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SURVEY_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="FULL_MARK_SCORE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.FULL_MARK_SCORE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SURVEY_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SURVEY_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SURVEY_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SURVEY_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="SURVEY_TYPE" datatype="VARCHAR" size="32" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SURVEY_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.FULL_MARK_SCORE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="FULL_MARK_SCORE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SURVEY_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SURVEY_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SURVEY_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SURVEY_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SURVEY_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SURVEY_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="FULL_MARK_SCORE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.FULL_MARK_SCORE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SURVEY_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SURVEY_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SURVEY_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SURVEY_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="SURVEY_TYPE" datatype="VARCHAR" size="32" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SURVEY_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.FULL_MARK_SCORE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="FULL_MARK_SCORE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SURVEY_NAME" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SURVEY_NAME" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SURVEY_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SURVEY_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SURVEY_TYPE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SURVEY_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_ALTSURVEY_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_ALTSURVEY_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="FULL_MARK_SCORE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSURVEY_EXT.FULL_MARK_SCORE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSURVEY_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSURVEY_EXT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSURVEY_EXT.MD_PF_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="SURVEY_NAME" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSURVEY_EXT.SURVEY_NAME"/>
</DIAttributes>
</DIElement>
<DIElement name="SURVEY_NAME_ALT" datatype="VARCHAR" size="60" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSURVEY_EXT.SURVEY_NAME_ALT"/>
</DIAttributes>
</DIElement>
<DIElement name="SURVEY_TYPE" datatype="VARCHAR" size="32" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSURVEY_EXT.SURVEY_TYPE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSURVEY_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSURVEY_EXT.FULL_MARK_SCORE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEY_EXT" column="FULL_MARK_SCORE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSURVEY_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEY_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSURVEY_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEY_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSURVEY_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEY_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSURVEY_EXT.SURVEY_NAME" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEY_EXT" column="SURVEY_NAME" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSURVEY_EXT.SURVEY_NAME_ALT" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEY_EXT" column="SURVEY_NAME_ALT" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSURVEY_EXT.SURVEY_TYPE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEY_EXT" column="SURVEY_TYPE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSURVEY_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEY_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_ALTSURVEY_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_ALTSURVEY_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEY_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTSURVEY_TSNP" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTSURVEY_EXT" >
<DIOutputView name="ALT_ALTSURVEY_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_ALTSURVEYSCORE_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Sat, 2 Apr 2011 15:35:48"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_ALTSURVEYSCORE_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_ALTSURVEYSCORE_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTSURVEYSCORE_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_ALTSURVEYSCORE_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTSURVEYSCORE_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_ALTSURVEYSCORE_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_ALTSURVEYSCORE_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_ALTSURVEYSCORE_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Sat, 2 Apr 2011 15:35:48"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="EMPLOYMENT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Employment (EMPLOYMENT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.EMPLOYMENT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LOCATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Org (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PERIOD_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Person (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PERSON_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SCORE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Survey Score"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SCORE"/>
</DIAttributes>
</DIElement>
<DIElement name="SURVEY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Survey (SURVEY)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SURVEY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.EMPLOYMENT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="EMPLOYMENT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LOCATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LOCATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PERIOD_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PERIOD_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PERSON_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PERSON_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SCORE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SCORE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SURVEY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SURVEY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="EMPLOYMENT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Employment (EMPLOYMENT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.EMPLOYMENT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LOCATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Org (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PERIOD_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Person (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PERSON_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SCORE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Survey Score"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SCORE"/>
</DIAttributes>
</DIElement>
<DIElement name="SURVEY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Survey (SURVEY)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SURVEY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.EMPLOYMENT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="EMPLOYMENT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LOCATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LOCATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PERIOD_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PERIOD_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PERSON_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PERSON_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SCORE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SCORE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SURVEY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SURVEY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="EMPLOYMENT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Employment (EMPLOYMENT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.EMPLOYMENT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LOCATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Org (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PERIOD_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Person (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PERSON_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SCORE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Survey Score"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SCORE"/>
</DIAttributes>
</DIElement>
<DIElement name="SURVEY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Survey (SURVEY)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SURVEY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.EMPLOYMENT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="EMPLOYMENT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LOCATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LOCATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PERIOD_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PERIOD_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PERSON_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PERSON_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SCORE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SCORE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SURVEY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SURVEY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_ALTSURVEYSCORE_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_ALTSURVEYSCORE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="EMPLOYMENT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Employment (EMPLOYMENT)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSURVEYSCORE_EXT.EMPLOYMENT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSURVEYSCORE_EXT.LOCATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSURVEYSCORE_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSURVEYSCORE_EXT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSURVEYSCORE_EXT.MD_PF_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Org (ORG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSURVEYSCORE_EXT.ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PERIOD_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSURVEYSCORE_EXT.PERIOD_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="PERSON_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Person (PERSON)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSURVEYSCORE_EXT.PERSON_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SCORE" datatype="DOUBLE" >
<DIAttributes>
<DIAttribute name="Description" value="Survey Score"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSURVEYSCORE_EXT.SCORE"/>
</DIAttributes>
</DIElement>
<DIElement name="SURVEY_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Survey (SURVEY)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSURVEYSCORE_EXT.SURVEY_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTSURVEYSCORE_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSURVEYSCORE_EXT.EMPLOYMENT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEYSCORE_EXT" column="EMPLOYMENT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSURVEYSCORE_EXT.LOCATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEYSCORE_EXT" column="LOCATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSURVEYSCORE_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEYSCORE_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSURVEYSCORE_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEYSCORE_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSURVEYSCORE_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEYSCORE_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSURVEYSCORE_EXT.ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEYSCORE_EXT" column="ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSURVEYSCORE_EXT.PERIOD_START_DATE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEYSCORE_EXT" column="PERIOD_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSURVEYSCORE_EXT.PERSON_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEYSCORE_EXT" column="PERSON_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSURVEYSCORE_EXT.SCORE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEYSCORE_EXT" column="SCORE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSURVEYSCORE_EXT.SURVEY_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEYSCORE_EXT" column="SURVEY_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTSURVEYSCORE_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEYSCORE_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_ALTSURVEYSCORE_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_ALTSURVEYSCORE_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_ALTSURVEYSCORE_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTSURVEYSCORE_TSNP" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTSURVEYSCORE_EXT" >
<DIOutputView name="ALT_ALTSURVEYSCORE_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>
<DIWorkflow name="ALT_ALTTIME_TO_MARKET_TSNP_WF" typeId="2" >
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Wed, 23 Mar 2011 16:16:50"/>
<DIAttribute name="Description" value="This workflow houses several workflows that are used to process source data extracts into the Transactional Snapshopt tables.&#xD;&#xA;ALT_ALTTIME_TO_MARKET_TSNP_WF: This workflow loads the data from the EXT tables into the TSNP tables."/>
</DIProperties>
<DISteps>
<DITryStep typeId="13" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="This is the Try portion to set up the Try Catch Block"/>
<DIAttribute name="ui_display_name" value="ALT_ALTTIME_TO_MARKET_TSNP_TRY"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that initiates the metadata tracking for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTTIME_TO_MARKET_TSNP_START_SC"/>
<DIAttribute name="ui_script_text" value="ABC_STARTWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_startwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_startwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
<DICallStep typeId="1"  calledObjectType="Dataflow" name="ALT_ALTTIME_TO_MARKET_TSNP_DF" >
</DICallStep>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="The script that calls the custom function that closes the metadata for the workflow."/>
<DIAttribute name="ui_display_name" value="ALT_ALTTIME_TO_MARKET_TSNP_END_SC"/>
<DIAttribute name="ui_script_text" value="ABC_ENDWF_FN(workflow_name(), $G_PROCESS_ID);&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_endwf_fn(workflow_name(), $G_PROCESS_ID)" >
<FUNCTION_CALL name="abc_endwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
<DICatch typeId="20" errorCode="210101" >
<DIUIOptions>
<DIAttribute name="AutoLayout" value="yes"/>
<DIAttribute name="ObjectDesc" value="The end of the TRY/CATCH block.  It contains the script that calls the custom function which writes metadata if there is a failure."/>
<DIAttribute name="ui_display_name" value="ALT_ALTTIME_TO_MARKET_TSNP_CATCH"/>
</DIUIOptions>
<DISteps>
<DIScript>
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This script is called upon the Failure of the TSNP Workflow"/>
<DIAttribute name="ui_display_name" value="ALT_ALTTIME_TO_MARKET_TSNP_FAIL_SC"/>
<DIAttribute name="ui_script_text" value="ABC_FAILWF_FN(workflow_name(), $G_PROCESS_ID, 'Error: \[' || error_number() || '\] ' || error_message());&#xD;&#xA;"/>
</DIUIOptions>
<DIFunctionCallStep typeId="23" >
<DIExpression isString="true" expr="abc_failwf_fn(workflow_name(), $G_PROCESS_ID, ((('Error: \\[' || error_number()) || '\\] ') || error_message()))" >
<FUNCTION_CALL name="abc_failwf_fn"  type="DI" >
<FUNCTION_CALL name="workflow_name"  type="DI" />
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
<CONCAT>
<CONCAT>
<CONCAT>
<CONSTANT value="Error: \[" datatype="VARCHAR" size="9" />
<FUNCTION_CALL name="error_number"  type="DI" />
</CONCAT>
<CONSTANT value="\] " datatype="VARCHAR" size="3" />
</CONCAT>
<FUNCTION_CALL name="error_message"  type="DI" />
</CONCAT>
</FUNCTION_CALL>
</DIExpression>
</DIFunctionCallStep>
</DIScript>
</DISteps>
</DICatch>
</DITryStep>
</DISteps>
<DIAttributes>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="unit_of_recovery" value="no"/>
</DIAttributes>
</DIWorkflow>
<DIDataflow name="ALT_ALTTIME_TO_MARKET_TSNP_DF" typeId="1" >
<DIUIOptions>
<DIAnnotation name="ANNOTATION_0"><DIAttribute name="ObjectDesc" value="Description: This dataflow sources records from the EXT to TSNP tables. If a record exists in EXT and TSNP, then the record is updated in TSNP. If the record exists only Author: John Monfort. in EXT, then it is insertd in TSNP. Records marked as delete (records in the EXTD table) as physically deleted from TSNP"/>
</DIAnnotation><DIAttribute name="AutoLayout" value="yes"/>
</DIUIOptions>
<DIProperties>
<DIAttribute name="GeneratorTemplate" value="PRODUCT_ENTITY_TSNP_WF (version ${project.version})"/>
<DIAttribute name="GeneratorVersion" value="v1.0"/>
<DIAttribute name="GenerationDate" value="Wed, 23 Mar 2011 16:16:50"/>
<DIAttribute name="Description" value="Process the records from EXT to TSNP"/>
</DIProperties>
<DITransforms>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Flag records as update or insert"/>
<DIAttribute name="ui_display_name" value="MO_Insert"/>
</DIUIOptions>
<DIInputView name="QRY_NEW"  />
<DISchema name="MO_Insert" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="insert"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records flagged as deletes (MD_PF_FLAG='D') are physically deleted from TSNP"/>
<DIAttribute name="ui_display_name" value="MO_Delete"/>
</DIUIOptions>
<DIInputView name="QRY_DEL"  />
<DISchema name="MO_Delete" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="delete"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Query Filters out only the Deletes from the EXT Source"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_DEL"/>
<DIAttribute name="ui_display_name" value="QRY_DEL"/>
<DIAttribute name="ui_where_text" value="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)"/>
</DIUIOptions>
<DISchema name="QRY_DEL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="INIT_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Init date Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.INIT_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.LOCATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Org (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PRODUCT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Product(CFGITEM)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PRODUCT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Project(PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.PROJECT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Service (SERVICE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.SERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="TT_MKT_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Time Market Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.TT_MKT_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_DEL.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.INIT_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="INIT_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.LOCATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="LOCATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PRODUCT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PRODUCT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.PROJECT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="PROJECT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.SERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="SERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.TT_MKT_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="TT_MKT_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_DEL.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_DEL" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(CS_MD_FLAG_CS_DEL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_DEL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Merge" >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="This Merge Merges the Updates, Inserts, and Deletes so one Load is done rather than 3 to the target"/>
</DIUIOptions>
<DIInputView name="MO_Delete"  />
<DIInputView name="MO_Insert"  />
<DIInputView name="MO_Update"  />
<DISchema name="Merge" >
</DISchema>
</DITransformCall>

<!-- GUID is optional -->
<DITransformCall typeId="210" name="Case_Operation"  >
<DIUIOptions>
<DIAttribute name="CS_MD_FLAG_CS_DEL" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE "/>
<DIAttribute name="CS_MD_FLAG_CS_NEW" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW "/>
<DIAttribute name="CS_MD_FLAG_CS_UPD" value="QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE "/>
<DIAttribute name="ObjectDesc" value="Check the value of the incoming MD_FLAG to determine the case statement to execute"/>
<DIAttribute name="ui_acta_from_schema_0" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_display_name" value="CS_MD_FLAG"/>
</DIUIOptions>
<DIInputView name="QRY_FILTER_PREFILL" />
<DISchema name="CS_MD_FLAG" >
</DISchema>
<DICase>
<DISwitch label="CS_NEW" outputView="CS_MD_FLAG_CS_NEW" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_NEW)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_NEW" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_UPD" outputView="CS_MD_FLAG_CS_UPD" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_UPDATE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_UPDATE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
<DISwitch label="CS_DEL" outputView="CS_MD_FLAG_CS_DEL" isDefault="false">
<DIExpression isString="true" expr="(QRY_FILTER_PREFILL.MD_FLAG = $G_FLAG_DELETE)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="QRY_FILTER_PREFILL" column="MD_FLAG" />
<VARIABLE_REFERENCE name="$G_FLAG_DELETE" />
</LOGICAL_OP>
</DIExpression>
</DISwitch>
</DICase>
<DIAttributes>
<DIAttribute name="Mutually_Exclusive" value="yes"/>
<DIAttribute name="Preserve_Expression_Order" value="no"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='NEW'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_NEW"/>
<DIAttribute name="ui_display_name" value="QRY_NEW"/>
</DIUIOptions>
<DISchema name="QRY_NEW" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="INIT_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Init date Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.INIT_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.LOCATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Org (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PRODUCT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Product(CFGITEM)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PRODUCT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Project(PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.PROJECT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Service (SERVICE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.SERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="TT_MKT_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Time Market Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.TT_MKT_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_NEW.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.INIT_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="INIT_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.LOCATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="LOCATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PRODUCT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PRODUCT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.PROJECT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="PROJECT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.SERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="SERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.TT_MKT_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="TT_MKT_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_NEW.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_NEW" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_NEW" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ObjectDesc" value="Records with MD_FLAG='UPD'"/>
<DIAttribute name="ui_acta_from_schema_0" value="CS_MD_FLAG_CS_UPD"/>
<DIAttribute name="ui_display_name" value="QRY_UPD"/>
</DIUIOptions>
<DISchema name="QRY_UPD" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="INIT_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Init date Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.INIT_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.LOCATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Org (ORG)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PRODUCT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Product(CFGITEM)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PRODUCT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Project(PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.PROJECT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Service (SERVICE)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.SERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="TT_MKT_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Time Market Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.TT_MKT_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="CS_MD_FLAG_CS_UPD.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.INIT_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="INIT_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.LOCATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="LOCATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PRODUCT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PRODUCT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.PROJECT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="PROJECT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.SERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="SERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.TT_MKT_START_DATE" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="TT_MKT_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="CS_MD_FLAG_CS_UPD.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="CS_MD_FLAG_CS_UPD" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="CS_MD_FLAG_CS_UPD" />
</DIFrom>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DITransformCall typeId="111" name="Map_Operation" >
<DIUIOptions>
<DIAttribute name="ui_display_name" value="MO_Update"/>
</DIUIOptions>
<DIInputView name="QRY_UPD"  />
<DISchema name="MO_Update" >
</DISchema>
<DIAttributes>
<DIAttribute name="delete" value="discard"/>
<DIAttribute name="insert" value="discard"/>
<DIAttribute name="normal" value="update"/>
<DIAttribute name="update" value="discard"/>
</DIAttributes>
</DITransformCall>
<DIQuery typeId="122"  >
<DIUIOptions>
<DIAttribute name="ui_acta_from_schema_0" value="ALT_ALTTIME_TO_MARKET_EXT"/>
<DIAttribute name="ui_display_name" value="QRY_FILTER_PREFILL"/>
<DIAttribute name="ui_where_text" value="(ALT_ALTTIME_TO_MARKET_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)"/>
</DIUIOptions>
<DISchema name="QRY_FILTER_PREFILL" >
<DIElement name="MD_BATCH_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_BATCH_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PROCESS_ID" datatype="DECIMAL" precision="19" scale="0" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="$G_PROCESS_ID"/>
</DIAttributes>
</DIElement>
<DIElement name="INIT_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Init date Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTTIME_TO_MARKET_EXT.INIT_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="LOCATION_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the location (LOCATION)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTTIME_TO_MARKET_EXT.LOCATION_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_BUSINESS_KEY" datatype="VARCHAR" size="100" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTTIME_TO_MARKET_EXT.MD_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_FLAG" datatype="VARCHAR" size="10" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTTIME_TO_MARKET_EXT.MD_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_PF_FLAG" datatype="VARCHAR" size="1" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTTIME_TO_MARKET_EXT.MD_PF_FLAG"/>
</DIAttributes>
</DIElement>
<DIElement name="ORG_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Org (ORG)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTTIME_TO_MARKET_EXT.ORG_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PRODUCT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Product(CFGITEM)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTTIME_TO_MARKET_EXT.PRODUCT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="PROJECT_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Project(PROJECT)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTTIME_TO_MARKET_EXT.PROJECT_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="SERVICE_BUSINESS_KEY" datatype="VARCHAR" size="100" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Service (SERVICE)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTTIME_TO_MARKET_EXT.SERVICE_BUSINESS_KEY"/>
</DIAttributes>
</DIElement>
<DIElement name="TT_MKT_START_DATE" datatype="DATETIME" >
<DIAttributes>
<DIAttribute name="Description" value="Foreign key to the Time Market Period (PERIOD)"/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTTIME_TO_MARKET_EXT.TT_MKT_START_DATE"/>
</DIAttributes>
</DIElement>
<DIElement name="MD_CP_ID" datatype="DECIMAL" precision="28" scale="0" key="true" >
<DIAttributes>
<DIAttribute name="Description" value=""/>
<DIAttribute name="ui_mapping_text" value="ALT_ALTTIME_TO_MARKET_EXT.MD_CP_ID"/>
</DIAttributes>
</DIElement>
</DISchema>
<DISelect>
<DIProjection>
<DIExpression isString="true" expr="$G_BATCH_ID" >
<VARIABLE_REFERENCE name="$G_BATCH_ID" />
</DIExpression>
<DIExpression isString="true" expr="$G_PROCESS_ID" >
<VARIABLE_REFERENCE name="$G_PROCESS_ID" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTTIME_TO_MARKET_EXT.INIT_START_DATE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTTIME_TO_MARKET_EXT" column="INIT_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTTIME_TO_MARKET_EXT.LOCATION_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTTIME_TO_MARKET_EXT" column="LOCATION_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTTIME_TO_MARKET_EXT.MD_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTTIME_TO_MARKET_EXT" column="MD_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTTIME_TO_MARKET_EXT.MD_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTTIME_TO_MARKET_EXT" column="MD_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTTIME_TO_MARKET_EXT.MD_PF_FLAG" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTTIME_TO_MARKET_EXT" column="MD_PF_FLAG" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTTIME_TO_MARKET_EXT.ORG_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTTIME_TO_MARKET_EXT" column="ORG_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTTIME_TO_MARKET_EXT.PRODUCT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTTIME_TO_MARKET_EXT" column="PRODUCT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTTIME_TO_MARKET_EXT.PROJECT_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTTIME_TO_MARKET_EXT" column="PROJECT_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTTIME_TO_MARKET_EXT.SERVICE_BUSINESS_KEY" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTTIME_TO_MARKET_EXT" column="SERVICE_BUSINESS_KEY" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTTIME_TO_MARKET_EXT.TT_MKT_START_DATE" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTTIME_TO_MARKET_EXT" column="TT_MKT_START_DATE" />
</DIExpression>
<DIExpression isString="true" expr="ALT_ALTTIME_TO_MARKET_EXT.MD_CP_ID" >
<COLUMN_REFERENCE  qualifier1="ALT_ALTTIME_TO_MARKET_EXT" column="MD_CP_ID" />
</DIExpression>
</DIProjection>
<DIFrom>
<DITableSpec name="ALT_ALTTIME_TO_MARKET_EXT" />
</DIFrom>
<DIWhere>
<DIExpression isString="true" expr="(ALT_ALTTIME_TO_MARKET_EXT.MD_PF_FLAG = $G_MD_NON_PREFILL_FLAG)" >
<LOGICAL_OP op="EQ">
<COLUMN_REFERENCE  qualifier1="ALT_ALTTIME_TO_MARKET_EXT" column="MD_PF_FLAG" />
<VARIABLE_REFERENCE name="$G_MD_NON_PREFILL_FLAG" />
</LOGICAL_OP>
</DIExpression>
</DIWhere>
</DISelect>
<DIAttributes>
<DIAttribute name="distinct_run_as_separate_process" value="no"/>
<DIAttribute name="group_by_run_as_separate_process" value="no"/>
<DIAttribute name="join_run_as_separate_process" value="no"/>
<DIAttribute name="order_by_run_as_separate_process" value="no"/>
<DIAttribute name="run_as_separate_process" value="no"/>
</DIAttributes>
</DIQuery>

<DIDatabaseTableTarget typeID="11" bulkLoader="false" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTTIME_TO_MARKET_TSNP" >
<DIInputView name="Merge"  />
<DIAttributes>
<DIAttribute name="LDRLiveLoad" value="no"/>
<DIAttribute name="Table_Type" value="TABLE"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="ldr_configuration_enabled" value="yes"/>
<DIAttribute name="ldr_configurations" hasNestedXMLTree ="true">
<LDRConfigurations>
<LDRConfiguration database_type="Microsoft_SQL_Server" database_version="Microsoft SQL Server 2005">
<auto_correct_using_merge>Yes</auto_correct_using_merge>
<bulk_ldr_all_rows/>
<bulk_ldr_max_errors/>
<bulk_ldr_rows_per_commit/>
<enable_partitioning>no</enable_partitioning>
<ignore_column_case>yes</ignore_column_case>
<ignore_columns_null>no</ignore_columns_null>
<ignore_columns_value/>
<loader_auto_correct>yes</loader_auto_correct>
<loader_bulk_load>0</loader_bulk_load>
<loader_compare_column>compare_by_name</loader_compare_column>
<loader_delete_map/>
<loader_drop_and_create_table>no</loader_drop_and_create_table>
<loader_insert_map/>
<loader_load_choice>append</loader_load_choice>
<loader_num_parallel_loaders>1</loader_num_parallel_loaders>
<loader_overflow_file>overflow_file</loader_overflow_file>
<loader_post_load1/>
<loader_pre_load1/>
<loader_quote_names>0</loader_quote_names>
<loader_transactional>no</loader_transactional>
<loader_transactional_order>0</loader_transactional_order>
<loader_update_key_columns>no</loader_update_key_columns>
<loader_update_map/>
<loader_use_user_defined_keys>no</loader_use_user_defined_keys>
<loader_xact_size>1000</loader_xact_size>
<mssql_bulk_ldr_mode>append</mssql_bulk_ldr_mode>
<mssql_bulk_ldr_packet_size>4</mssql_bulk_ldr_packet_size>
<overflow_file_format>Write data</overflow_file_format>
<overriding_substitution_parameter_for_tablename/>
<use_overflow_file>no</use_overflow_file>
<use_unicode_varchar>no</use_unicode_varchar>
<sql_text/>
</LDRConfiguration>
</LDRConfigurations>
</DIAttribute>
<DIAttribute name="loader_template_table" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="use_unicode_varchar" value="no"/>
</DIAttributes>
</DIDatabaseTableTarget>

<DIDatabaseTableSource typeId="22" datastoreName="SRCSTAGING_DS" ownerName="SRCSTAGING_ALIAS" tableName="ALT_ALTTIME_TO_MARKET_EXT" >
<DIOutputView name="ALT_ALTTIME_TO_MARKET_EXT"  />
<DIAttributes>
<DIAttribute name="array_fetch_size" value="1000"/>
<DIAttribute name="cache" value="yes"/>
<DIAttribute name="connection_port" value="no"/>
<DIAttribute name="enable_partitioning" value="no"/>
<DIAttribute name="name" value="SRCSTAGING_DS"/>
<DIAttribute name="package_size" value="0"/>
<DIAttribute name="reader_is_DB2CDC_table" value="no"/>
<DIAttribute name="reader_overflow_file" value="overflow_file"/>
<DIAttribute name="reader_template_table" value="no"/>
<DIAttribute name="reader_use_overflow_file" value="no"/>
<DIAttribute name="reader_use_trex_transaction" value="no"/>
<DIAttribute name="table_weight" value="0"/>
</DIAttributes>
</DIDatabaseTableSource>

</DITransforms>
<DIAttributes>
<DIAttribute name="Cache_type" value="pageable_cache"/>
<DIAttribute name="Parallelism_degree" value="0"/>
<DIAttribute name="allows_both_input_and_output" value="yes"/>
<DIAttribute name="run_once" value="no"/>
<DIAttribute name="use_dataflow_links" value="no"/>
<DIAttribute name="use_datastore_links" value="yes"/>
<DIAttribute name="validation_xform_exists" value="no"/>
<DIAttribute name="validation_xform_stats" value="no"/>
</DIAttributes>
</DIDataflow>

</DataIntegratorExport>

